use nix-gaming for audio fixes
This commit is contained in:
parent
89016c01da
commit
9459b2267b
4 changed files with 69 additions and 23 deletions
|
@ -4,11 +4,13 @@
|
|||
# high priority since it's almost always used
|
||||
"https://cache.nixos.org?priority=10"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://nix-gaming.cachix.org"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{lib, ...}: {
|
||||
{inputs, ...}: {
|
||||
imports = [inputs.nix-gaming.nixosModules.pipewireLowLatency];
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
|
@ -6,22 +8,6 @@
|
|||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
# https://wiki.archlinux.org/title/PipeWire#Noticeable_audio_delay_or_audible_pop/crack_when_starting_playback
|
||||
wireplumber.extraConfig."51-disable-suspension.conf" = {
|
||||
"monitor.alsa.rules" = lib.singleton {
|
||||
matches = [
|
||||
{"node.name" = "~alsa_input.*";}
|
||||
{"node.name" = "~alsa_output.*";}
|
||||
];
|
||||
actions.update-props."session.suspend-timeout.seconds" = 0;
|
||||
};
|
||||
"monitor.bluez.rules" = lib.singleton {
|
||||
matches = [
|
||||
{"node.name" = "~bluez_input.*";}
|
||||
{"node.name" = "~bluez_output.*";}
|
||||
];
|
||||
actions.update-props."session.suspend-timeout-seconds" = 0;
|
||||
};
|
||||
};
|
||||
lowLatency.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue