Last active
May 6, 2021 09:21
-
-
Save cidkidnix/bfe642ff41e8a2c9783c67424c87120f 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
| services.pipewire = { | |
| enable = true; | |
| pulse.enable = true; | |
| alsa.enable = true; | |
| alsa.support32Bit = true; | |
| jack.enable = true; | |
| config.pipewire = { | |
| "context.properties" = { | |
| "link.max-buffers" = 16; | |
| "log.level" = 2; | |
| "default.clock.rate" = 96000; | |
| "default.clock.quantum" = 64; | |
| "default.clock.min-quantum" = 64; | |
| "default.clock.max-quantum" = 64; | |
| "core.daemon" = true; | |
| "core.name" = "pipewire-0"; | |
| }; | |
| "context.modules" = [ | |
| { | |
| name = "libpipewire-module-rtkit"; | |
| args = { | |
| "nice.level" = -15; | |
| "rt.prio" = 88; | |
| "rt.time.soft" = 200000; | |
| "rt.time.hard" = 200000; | |
| }; | |
| flags = [ "ifexists" "nofail" ]; | |
| } | |
| { 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"; } | |
| { | |
| name = "libpipewire-module-portal"; | |
| flags = [ "ifexists" "nofail" ]; | |
| } | |
| { | |
| name = "libpipewire-module-access"; | |
| args = {}; | |
| } | |
| { name = "libpipewire-module-adapter"; } | |
| { name = "libpipewire-module-link-factory"; } | |
| { name = "libpipewire-module-session-manager"; } | |
| ]; | |
| }; | |
| config.pipewire-pulse = { | |
| "context.properties" = { | |
| "log.level" = 2; | |
| }; | |
| "context.modules" = [ | |
| { | |
| name = "libpipewire-module-rtkit"; | |
| args = { | |
| "nice.level" = -15; | |
| "rt.prio" = 88; | |
| "rt.time.soft" = 200000; | |
| "rt.time.hard" = 200000; | |
| }; | |
| flags = [ "ifexists" "nofail" ]; | |
| } | |
| { name = "libpipewire-module-protocol-native"; } | |
| { name = "libpipewire-module-client-node"; } | |
| { name = "libpipewire-module-adapter"; } | |
| { name = "libpipewire-module-metadata"; } | |
| { | |
| name = "libpipewire-module-protocol-pulse"; | |
| args = { | |
| pulse.min.req = "64/96000"; | |
| pulse.default.req = "64/96000"; | |
| pulse.max.req = "64/96000"; | |
| pulse.min.quantum = "64/96000"; | |
| pulse.max.quantum = "64/96000"; | |
| "server.address" = [ "native" ]; | |
| }; | |
| } | |
| ]; | |
| "stream.properties" = { | |
| node.latency = "64/96000"; | |
| resample.quality = 1; | |
| }; | |
| }; | |
| config.client = { | |
| "filter.properties" = { | |
| "node.latency" = "32/96000"; | |
| }; | |
| "stream.properties" = { | |
| "node.latency" = "32/96000"; | |
| "resample.quality" = 1; | |
| }; | |
| }; | |
| config.client-rt = { | |
| "filter.properties" = { | |
| "node.latency" = "32/96000"; | |
| "resample.quality" = 1; | |
| }; | |
| "stream.properties" = { | |
| "node.latency" = "32/96000"; | |
| }; | |
| }; | |
| media-session = { | |
| config.alsa-monitor = { | |
| "rules" = [ | |
| { | |
| matches = [ | |
| { | |
| device.name = "~alsa_card.*"; | |
| } | |
| ]; | |
| actions = { | |
| update-props = { | |
| api.alsa.use-acp = true; | |
| api.alsa.soft-mixer = false; | |
| api.acp.auto-profile = false; | |
| api.acp.auto-port = false; | |
| api.alsa.disable-batch = true; | |
| }; | |
| }; | |
| } | |
| { | |
| matches = [ | |
| { | |
| node.name = "alsa_output.usb-GuangZhou_FiiO_Electronics_Co._Ltd_FiiO_K5_Pro-00.*"; | |
| } | |
| ]; | |
| actions = { | |
| update-props = { | |
| node.nick = "FiiO K5 Pro"; | |
| node.pause-on-idle = false; | |
| resample.quality = 1; | |
| channelmix.normalize = false; | |
| audio.channels = 2; | |
| audio.format = "S32LE"; | |
| audio.rate = 96000; | |
| audio.position = "FL,FR"; | |
| api.alsa.period-size = 64; | |
| }; | |
| }; | |
| } | |
| ]; | |
| }; | |
| config.media-session = { | |
| "context.modules" = [ | |
| { | |
| name = "libpipewire-module-rtkit"; | |
| args = { | |
| "nice.level" = -15; | |
| "rt.prio" = 88; | |
| "rt.time.soft" = 200000; | |
| "rt.time.hard" = 200000; | |
| }; | |
| flags = [ "ifexists" "nofail" ]; | |
| } | |
| { name = "libpipewire-module-protocol-native"; } | |
| { name = "libpipewire-module-client-node"; } | |
| { name = "libpipewire-module-client-device"; } | |
| { name = "libpipewire-module-adapter"; } | |
| { name = "libpipewire-module-metadata"; } | |
| { name = "libpipewire-module-session-manager"; } | |
| ]; | |
| }; | |
| }; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment