move around some stuff

This commit is contained in:
xunuwu 2024-11-23 17:41:01 +01:00
parent 6ab8a4e38d
commit ef537aa980
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
31 changed files with 126 additions and 308 deletions

View file

@ -1,10 +1,4 @@
{
lib,
inputs,
...
}: {
imports = [inputs.nix-gaming.nixosModules.pipewireLowLatency];
{lib, ...}: {
services.pipewire = {
enable = true;
alsa.enable = true;
@ -12,10 +6,22 @@
jack.enable = true;
pulse.enable = true;
lowLatency = {
enable = true;
quantum = 64;
rate = 48000;
# 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;
};
};
};