use pipewire settings files
This commit is contained in:
parent
873bccbd88
commit
af199173f8
2 changed files with 29 additions and 27 deletions
|
@ -99,18 +99,23 @@
|
|||
"ca-derivations"
|
||||
];
|
||||
networking.firewall.allowedTCPPorts = [58913];
|
||||
services.pipewire.config.pipewire."context.properties"."default.clock.rate" = 384000;
|
||||
services.pipewire.config.pipewire."context.properties"."default.clock.allowed-rates" = [
|
||||
44100
|
||||
48000
|
||||
88200
|
||||
96000
|
||||
176400
|
||||
192000
|
||||
352800
|
||||
384000
|
||||
];
|
||||
services.pipewire.config.pipewire."context.properties"."default.clock.quantum" = 8192;
|
||||
|
||||
environment.etc."pipewire/pipewire.conf.d/hi-res.conf".text = ''
|
||||
context.properties = {
|
||||
default.clock.rate = 384000
|
||||
default.clock.allowedRates = [
|
||||
44100
|
||||
48000
|
||||
88200
|
||||
96000
|
||||
176400
|
||||
192000
|
||||
352800
|
||||
384000
|
||||
]
|
||||
default.clock.quantum = 8192
|
||||
}
|
||||
'';
|
||||
nix.settings.substituters = lib.mkForce [
|
||||
"https://hydra.int.chir.rs/"
|
||||
"https://cache.nixos.org/"
|
||||
|
|
|
@ -38,23 +38,20 @@ _: {
|
|||
value = "99999";
|
||||
}
|
||||
];
|
||||
services.pipewire.config.pipewire-pulse = {
|
||||
"pusle.rules" = [
|
||||
environment.etc."pipewire/pipewire-pulse.conf.d/discord.conf".text = ''
|
||||
pulse.rules = [
|
||||
{
|
||||
# Discord notification sounds fix
|
||||
matches = [
|
||||
{
|
||||
"application.process.binary" = ".Discord-wrapped";
|
||||
}
|
||||
{
|
||||
"application.process.binary" = "Discord";
|
||||
}
|
||||
];
|
||||
{ application.process.binary = "Discord" }
|
||||
{ application.process.binary = ".Discord-wrapped" }
|
||||
]
|
||||
actions = {
|
||||
update-props = {
|
||||
"pulse.min.quantum" = "8192/48000";
|
||||
};
|
||||
};
|
||||
update-props = {
|
||||
pulse.min.quantum = 1024/48000 # 21ms
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
};
|
||||
]
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue