22 lines
396 B
Nix
22 lines
396 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
let snapserver_ip = "192.168.1.144";
|
||
|
in
|
||
|
{
|
||
|
home.packages = [ pkgs.snapcast ];
|
||
|
|
||
|
systemd.user.services.snapclient = {
|
||
|
Unit = {
|
||
|
After = [ "pipewire.service" ];
|
||
|
};
|
||
|
Service = {
|
||
|
Type = "simple";
|
||
|
ExecStart = "${pkgs.snapcast}/bin/snapclient --host ${snapserver_ip}";
|
||
|
};
|
||
|
Install = {
|
||
|
WantedBy = [ "pipewire.service" ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|