diff --git a/hosts/vessel/audiocomp.nix b/hosts/vessel/audiocomp.nix index fa46ee4..c708ee2 100644 --- a/hosts/vessel/audiocomp.nix +++ b/hosts/vessel/audiocomp.nix @@ -40,13 +40,23 @@ ''; }; in { - # systemd.services.audiocomp = { - # description = "Compress and sync music"; - # serviceConfig = { - # Type = "oneshot"; - # User = "root"; - # Group = "root"; - # ExecStart = lib.getExe audiocomp; - # }; - # }; + systemd.services.audiocomp = { + description = "Compress and sync music"; + serviceConfig = { + Type = "oneshot"; + User = "root"; + Group = "root"; + ExecStart = lib.getExe audiocomp; + }; + }; + + systemd.timers.audiocomp = { + description = "Compress and sync music daily"; + wantedBy = ["timers.target"]; + timerConfig = { + OnCalendar = "*-*-* 03:00:00"; + Persistent = true; + Unit = "audiocomp.service"; + }; + }; } diff --git a/hosts/vessel/syncthing.nix b/hosts/vessel/syncthing.nix index 30ab582..f430f0d 100644 --- a/hosts/vessel/syncthing.nix +++ b/hosts/vessel/syncthing.nix @@ -1,11 +1,14 @@ -let +{lib, ...}: let guiPort = 8384; in { services.syncthing = { enable = true; systemService = true; openDefaultPorts = true; - guiAddress = "0.0.0.0:${builtins.toString guiPort}"; + guiAddress = lib.formatHostPort { + host = "0.0.0.0"; + port = guiPort; + }; }; networking.firewall.allowedTCPPorts = [guiPort];