diff --git a/config/users/kat/default.nix b/config/users/kat/default.nix index df9a0213..a3cb51da 100644 --- a/config/users/kat/default.nix +++ b/config/users/kat/default.nix @@ -4,6 +4,7 @@ imports = [ ./ssh.nix ./desktop.nix + ./sound.nix ./gaming.nix ./network.nix ./sway.nix diff --git a/config/users/kat/sound.nix b/config/users/kat/sound.nix new file mode 100644 index 00000000..0716a321 --- /dev/null +++ b/config/users/kat/sound.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +{ + config = lib.mkIf (lib.elem "desktop" config.meta.deploy.profiles) { + sound.extraConfig = '' + defaults.pcm.rate_converter "speexrate_best" + ''; + hardware.pulseaudio.daemon.config = { + default-sample-format = "s24le"; + default-sample-rate = 192000; + resample-method = "soxr-vhq"; + }; + }; +}