From 196483417f101832ff29fc1f69b18476f550ad77 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 9 Oct 2022 05:34:45 -0400 Subject: [PATCH] levi: keep onboard DAC from sleeping --- hosts/levi/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/levi/default.nix b/hosts/levi/default.nix index 7193a45..6fb7f4d 100644 --- a/hosts/levi/default.nix +++ b/hosts/levi/default.nix @@ -19,6 +19,19 @@ in { type = "ed25519"; path = "${persist}/ssh_host_ed25519_key"; } ]; + # speakers buzz when the onboard DAC suspends + nixpkgs.overlays = [ + (self: super: { + wireplumber = super.wireplumber.overrideAttrs (_: { + postInstall = '' + sed -i \ + 's/.*session.suspend-timeout-seconds.*/["session.suspend-timeout-seconds"]=0,/' \ + $out/share/wireplumber/main.lua.d/50-alsa-config.lua + ''; + }); + }) + ]; + sconfig = { gnome = true; profile = "desktop";