36 lines
696 B
Nix
36 lines
696 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
# Put all sinks in pipewire group
|
|
services.pipewire.systemWide = true;
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
publish = {
|
|
enable = true;
|
|
domain = true;
|
|
addresses = true;
|
|
};
|
|
};
|
|
|
|
services.snapserver = {
|
|
enable = false;
|
|
};
|
|
|
|
systemd.services.snapclient = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "pipewire.service" ];
|
|
requires = [ "pipewire.service" ];
|
|
description = "Snapcast client";
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.snapcast}/bin/snapclient -h 127.0.0.1 --player pulse --mixer hardware";
|
|
DynamicUser = true;
|
|
SupplementaryGroups = [ "pipewire" ];
|
|
};
|
|
};
|
|
}
|