[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;
};
}