From d1566022f44bc43219d214281930bcf770c9f4bf Mon Sep 17 00:00:00 2001 From: kat witch Date: Tue, 2 Mar 2021 15:14:18 +0000 Subject: [PATCH] Sound module --- config/users/kat/default.nix | 1 + config/users/kat/sound.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 config/users/kat/sound.nix 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"; + }; + }; +}