diff --git a/hosts/yodaNas/host-specific.nix b/hosts/yodaNas/host-specific.nix index 356aca7..48ca239 100644 --- a/hosts/yodaNas/host-specific.nix +++ b/hosts/yodaNas/host-specific.nix @@ -53,13 +53,13 @@ in # Create netcup-dns timer. systemd.timers."netcup-dns" = { wantedBy = [ "timers.target" ]; - partOf = [ "netcup-dns.service" ]; - # https://man.archlinux.org/man/systemd.timer.5 + #partOf = [ "netcup-dns.service" ]; # TODO rm this? timerConfig = { - OnCalendar = "3m"; + OnBootSec = "0m"; + OnUnitInactiveSec = "3m"; + AccuracySec = "15s"; RandomizedDelaySec = "15s"; - Persistent = true; }; }; systemd.services."netcup-dns" = { @@ -69,13 +69,8 @@ in User = "netcup-dns"; Nice = 19; IOSchedulingClass = "idle"; - #ExecStart = "/run/current-system/sw/bin/netcup-dns"; - #ExecStart = "${my-python-packages}/bin/netcup-dns"; ExecStart = "${pkgs.python3.withPackages my-python-packages}/bin/netcup-dns"; }; -# path = with pkgs; [ -# my-python-packages -# ]; }; # Start Jinja-Compose project during boot.