diff --git a/modules/snapclient.nix b/modules/snapclient.nix index 2180cfe..4da67d9 100644 --- a/modules/snapclient.nix +++ b/modules/snapclient.nix @@ -3,9 +3,9 @@ lib, config, ... -}: -let cfg = config.services.snapclient; in -{ +}: let + cfg = config.services.snapclient; +in { options.services.snapclient.enable = lib.mkEnableOption "a local snapclient service"; options.services.snapclient.latency = lib.mkOption { type = lib.types.number; @@ -22,8 +22,8 @@ let cfg = config.services.snapclient; in "pipewire.service" ]; serviceConfig = { - ExecStart = "${pkgs.snapcast}/bin/snapclient --host snapserver --player pulse --latency ${builtins.toString cfg.latency}"; - Slice="session.slice"; + ExecStart = "${pkgs.snapcast}/bin/snapclient --host snapserver.lan --player pulse --latency ${builtins.toString cfg.latency}"; + Slice = "session.slice"; }; }; }