[nix] Cleans up warnings about options and reduces duplication

This commit is contained in:
2025-05-05 10:33:00 -07:00
parent 29317386a9
commit 0914c02547
8 changed files with 19 additions and 33 deletions

16
system/features/audio.nix Normal file
View File

@@ -0,0 +1,16 @@
{ ... }: {
# RealtimeKit hands out realtime scheduling priority to user processes on
# demand, e.g. audio
security.rtkit.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
}

View File

@@ -88,11 +88,6 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Allow unfree packages
nixpkgs.config = {
allowUnfree = true;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [

View File

@@ -5,6 +5,7 @@
./hardware-configuration.nix
./qmk.nix
../../authorized-keys.nix
../../features/audio.nix
../../features/gc.nix
../../features/gui.nix
../../features/container-dev.nix

View File

@@ -57,22 +57,6 @@
# Enable a secret manager
services.gnome.gnome-keyring.enable = true;
# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;

View File

@@ -4,6 +4,7 @@
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix
../../features/audio.nix
../../features/gc.nix
../../features/gui.nix
../../features/container-dev.nix