Update audio configs

This commit is contained in:
albert 2025-02-03 21:43:33 -08:00
parent fbe88d337c
commit 4166e5615e
Signed by: albert
GPG key ID: 3895DD267CA11BA9
2 changed files with 4 additions and 2 deletions
nixos
common/desktops/gnome
users/albert

View file

@ -2,14 +2,15 @@
# Enable sound with pipewire.
security.rtkit.enable = true;
services.pipewire = {
systemWide = true;
enable = true;
alsa.enable = true;
pulse.enable = true;
extraConfig.pipewire = {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 2048;
"default.clock.min-quantum" = 2048;
"default.clock.quantum" = 1024;
"default.clock.min-quantum" = 64;
"default.clock.max-quantum" = 8192;
};
};

View file

@ -14,6 +14,7 @@ in {
extraGroups = [ "networkmanager" "wheel" ]
++ ifExists [ "keys" ]
++ ifExists [ "audio" ]
++ ifExists [ "pipewire" ]
++ ifExists [ "video" ]
++ ifExists [ "docker" ]
++ ifExists [ "podman" ]