fix(module/snapclient): add .lan to fix dns resolution

This commit is contained in:
Malte Tammena 2024-11-17 15:11:42 +01:00
parent 0bc28f8578
commit 39ee2191a3

View file

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