From 709faf9f079945b59ef356a2e895b32b938b8504 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 2 Oct 2023 16:13:17 +0200 Subject: [PATCH] fix: netcup-dns timer --- hosts/yodaNas/host-specific.nix | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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.