Created
September 11, 2022 01:32
-
-
Save cab404/69133ebab151a0b4b74fe60cd6e0f884 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
let | |
on = { enable = true; }; | |
first = a: b: a; | |
in { | |
services.pipewire = on // { | |
config = { | |
pipewire = { | |
"pulse.properties" = { | |
"server.address" = [ | |
{ | |
address = "unix:/tmp/pulse"; # address | |
client.access = "allowed"; # permissions for clients | |
} | |
{ | |
address = "tcp:4713"; # address | |
client.access = "allowed"; # permissions for clients | |
} | |
]; | |
}; | |
"context.properties" = { | |
"log.level" = 3; # https://docs.pipewire.org/page_daemon.html | |
}; | |
"context.modules" = [ | |
{ | |
args = { "nice.level" = -11; }; | |
flags = [ "ifexists" "nofail" ]; | |
name = "libpipewire-module-rt"; | |
} | |
{ name = "libpipewire-module-protocol-native"; } | |
{ name = "libpipewire-module-profiler"; } | |
{ name = "libpipewire-module-metadata"; } | |
{ name = "libpipewire-module-spa-device-factory"; } | |
{ name = "libpipewire-module-spa-node-factory"; } | |
{ name = "libpipewire-module-client-node"; } | |
{ name = "libpipewire-module-client-device"; } | |
{ | |
flags = [ "ifexists" "nofail" ]; | |
name = "libpipewire-module-portal"; | |
} | |
{ | |
args = { }; | |
name = "libpipewire-module-access"; | |
} | |
{ name = "libpipewire-module-adapter"; } | |
{ name = "libpipewire-module-link-factory"; } | |
{ name = "libpipewire-module-session-manager"; } | |
{ | |
name = "libpipewire-module-protocol-pulse"; | |
args = { }; | |
} | |
]; | |
}; | |
}; | |
audio = on; | |
jack = on; | |
alsa = on; | |
systemWide = true; | |
socketActivation = false; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment