diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-21 23:13:10 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-21 23:13:10 +0200 |
commit | 1995b036b4a3d8372663e952eca1e7f2a746420e (patch) | |
tree | 72563b58e71a80bdea45266cd9cefcf019ea575d /common.nix | |
parent | 92787bd8e3f55c8636eaafbf72b06b92764e6330 (diff) |
try better audio config to avoid pop on suspend
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 45 |
1 files changed, 41 insertions, 4 deletions
@@ -199,11 +199,50 @@ in services.desktopManager.plasma6.enable = true; # enable sound with PipeWire + sound.enable = true; + hardware.pulseaudio.enable = false; services.pipewire = { enable = true; - alsa.enable = true; - jack.enable = true; + alsa = { + enable = true; + support32Bit = true; + }; pulse.enable = true; + wireplumber.configPackages = [ + (pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/alsa.conf" '' + monitor.alsa.rules = [ + { + matches = [ + { + device.name = "~alsa_card.*" + } + ] + actions = { + update-props = { + # Device settings + api.alsa.use-acp = true + } + } + } + { + matches = [ + { + node.name = "~alsa_input.pci.*" + } + { + node.name = "~alsa_output.pci.*" + } + ] + actions = { + # Node settings + update-props = { + session.suspend-timeout-seconds = 0 + } + } + } + ] + '') + ]; }; # allow realtime @@ -485,8 +524,6 @@ in optimize = "sudo nix --extra-experimental-features nix-command store optimise"; # ssh around in the local network - kuro = "ssh kuro.fritz.box"; - kuroroot = "ssh root@kuro.fritz.box"; mini = "ssh mini.fritz.box"; miniroot = "ssh root@mini.fritz.box"; neko = "ssh neko.fritz.box"; |