PipeWire: Difference between revisions
imported>Thiagokokada No edit summary |
imported>Arachnist No edit summary |
||
| Line 41: | Line 41: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<strong>NOTE</strong>: Arrays are <em>replaced</em> rather than merged with defaults, so in order to keep any default items in the configuration, they <strong>have to</strong> be listed. | <strong>NOTE</strong>: Arrays are <em>replaced</em> rather than merged with defaults, so in order to keep any default items in the configuration, they <strong>have to</strong> be listed. You can work around that by loading the default configuration files just like the pipewire service module does, like so: | ||
<syntaxHighlight lang="nix"> | |||
let | |||
defaultContextModules = (lib.importJSON <nixpkgs/nixos/modules/services/desktops/pipewire/daemon/pipewire.conf.json>)."context.modules"; | |||
in | |||
{ | |||
services.pipewire = { | |||
config.pipewire = { | |||
"context.modules" = [{ | |||
name = "…"; | |||
args = { }; | |||
}] ++ defaultContextModules; | |||
}; | |||
}; | |||
} | |||
</syntaxHighlight> | |||
==Bluetooth Configuration== | ==Bluetooth Configuration== | ||