diff --git a/2configs/home/music.nix b/2configs/home/music.nix index b32af62..e249477 100644 --- a/2configs/home/music.nix +++ b/2configs/home/music.nix @@ -9,7 +9,12 @@ in MusicFolder = "/media/cryptX/music/kinder"; Address = "0.0.0.0"; }; - systemd.services.navidrome.serviceConfig.RequiresMountFor = [ "/media/cryptX" ]; + systemd.services.navidrome.serviceConfig = { + RequiresMountFor = [ "/media/cryptX" ]; + Restart = "always"; + + RestartSec = "15"; + }; state = [ "/var/lib/navidrome" ]; # networking.firewall.allowedTCPPorts = [ 4040 ]; diff --git a/2configs/home/zigbee2mqtt/default.nix b/2configs/home/zigbee2mqtt/default.nix index ca68a15..34bf89a 100644 --- a/2configs/home/zigbee2mqtt/default.nix +++ b/2configs/home/zigbee2mqtt/default.nix @@ -8,6 +8,7 @@ in { sops.secrets."zigbee2mqtt" = { owner = "zigbee2mqtt"; + path = "/var/lib/zigbee2mqtt/configuration.yaml"; }; # symlink the zigbee controller @@ -23,6 +24,8 @@ in services.zigbee2mqtt = { enable = true; inherit dataDir; + # sets DeviceAllow in systemd service + settings.serial.port = "/dev/cc2531"; }; services.nginx.recommendedProxySettings = true; @@ -43,7 +46,7 @@ in systemd.services.zigbee2mqtt = { # override automatic configuration.yaml deployment environment.ZIGBEE2MQTT_DATA = dataDir; - #serviceConfig.ExecStartPre = lib.mkForce "${pkgs.coreutils}/bin/true"; + serviceConfig.ExecStartPre = lib.mkForce "${pkgs.coreutils}/bin/true"; after = [ "home-assistant.service" "mosquitto.service"