1769288238

This commit is contained in:
2026-01-24 22:57:18 +02:00
parent fa32ae5510
commit 84020b1572
94 changed files with 1428 additions and 1024 deletions
+33 -8
View File
@@ -1,4 +1,5 @@
{
pkgs,
lib,
config,
...
@@ -12,10 +13,10 @@ in {
};
config = mkIf cfg.enable {
security.rtkit = {
enable = true;
args = ["--no-canary"];
};
# security.rtkit = {
# enable = true;
# args = ["--no-canary"];
# };
services.pulseaudio.enable = false;
services.pipewire = {
enable = true;
@@ -25,13 +26,14 @@ in {
# "context.properties" = {
# "default.clock.rate" = 48000;
# "default.clock.quantum" = 32;
# "default.clock.min-quantum" = 32;
# "default.clock.min-quantum" = 2048;
# "default.clock.max-quantum" = 32;
# };
# };
wireplumber.extraConfig."10-alsa-vm" = {
"api.alsa.period-size" = 1024 / 2; # seems to fix random crackling
};
# wireplumber.extraConfig."10-alsa-vm" = {
# "api.alsa.period-size" = 1024; # seems to fix random crackling
# "api.alsa.headroom" = 128;
# };
extraConfig.pipewire-pulse."93-auto-connect" = {
"pulse.cmd" = [
{
@@ -60,5 +62,28 @@ in {
# };
# };
};
services.pipewire.wireplumber.configPackages = [
(pkgs.writeTextDir "share/wireplumber/main.lua.d/10-disable-suspend.conf" ''
monitor.alsa.rules = [
{
matches = [
{
# Matches all sources
node.name = "~alsa_input.*"
},
{
# Matches all sinks
node.name = "~alsa_output.*"
}
]
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
}
}
]
'')
];
};
}
+4
View File
@@ -26,6 +26,10 @@ in {
config.common."org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
environment.systemPackages = with pkgs; [
libnotify
];
module.gnome-keyring.enable = true;
module.pipewire.enable = true;