BROKEN: Expanding desktop option
This commit is contained in:
parent
562a8b7a2e
commit
d0a41df000
44 changed files with 272 additions and 296 deletions
55
system/desktop/pipewire.nix
Normal file
55
system/desktop/pipewire.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.niksos.desktop.enable;
|
||||
in {
|
||||
config = lib.mkIf cfg {
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
extraConfig.pipewire = {
|
||||
"10-combined-sink" = {
|
||||
"context.modules" = [
|
||||
{
|
||||
name = "libpipewire-module-combine-stream";
|
||||
args = {
|
||||
"combine.mode" = "sink";
|
||||
"node.name" = "combined_sink";
|
||||
"node.description" = "All audio outputs combined.";
|
||||
"combine.latency-compensate" = false;
|
||||
"combine.props" = {
|
||||
"audio.position" = ["FL" "FR"];
|
||||
};
|
||||
"stream.props" = {};
|
||||
"stream.rules" = [
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
"media.class" = "Audio/Sink";
|
||||
}
|
||||
];
|
||||
actions = {
|
||||
create-stream = {};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.pulsemixer];
|
||||
services.pulseaudio.enable = lib.mkForce false; # gnome enables it
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue