diff --git a/hosts/iron/services/home-assistant.nix b/hosts/iron/services/home-assistant.nix index 792890d..d2bea9e 100644 --- a/hosts/iron/services/home-assistant.nix +++ b/hosts/iron/services/home-assistant.nix @@ -209,6 +209,8 @@ in --sout='#transcode{acodec=s16le,channels=2,samplerate=48000}:std{access=file,mux=raw,dst=/run/snapserver/hass.fifo}' \ --aout=none ''; + wants = [ "snapserver.service" ]; + after = [ "snapserver.service" ]; serviceConfig = { BindPaths = [ "/run/snapserver/hass.fifo" ]; BindReadOnlyPaths = [ "/nix/store" "/etc/ssl/certs" "/etc/static/ssl/certs" ]; diff --git a/hosts/iron/services/snapcast/ledfx.nix b/hosts/iron/services/snapcast/ledfx.nix index a6ade67..9f78c71 100644 --- a/hosts/iron/services/snapcast/ledfx.nix +++ b/hosts/iron/services/snapcast/ledfx.nix @@ -31,8 +31,8 @@ in systemd.services.ledfx = { enable = true; description = "LedFx"; - wants = [ "network.target" "sound.target" ]; - after = [ "network.target" "sound.target" ]; + wants = [ "network.target" "sound.target" "snapclient-ledfx.service" ]; + after = [ "network.target" "sound.target" "snapclient-ledfx.service" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { DynamicUser = "yes";