diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/sagittarius/headscale.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/sagittarius/headscale.nix b/hosts/sagittarius/headscale.nix index 05c5e5e..6874ad1 100644 --- a/hosts/sagittarius/headscale.nix +++ b/hosts/sagittarius/headscale.nix @@ -62,6 +62,7 @@ in systemd.services.backup-headscale = { serviceConfig.Type = "oneshot"; + description = "Back up headscale data"; conflicts = [ "headscale.service" ]; path = [ pkgs.gnutar @@ -83,4 +84,10 @@ in ''; postStop = "systemctl start headscale.service"; }; + + systemd.timers.backup-headscale = { + description = "Back up headscale every morning"; + timerConfig.OnCalendar = "*-*-* 05:00:00"; + wantedBy = [ "timers.target" ]; + }; } |
