From a76fcc0cc6167c601f9d48964528235478c37a3a Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Tue, 18 Aug 2026 19:28:59 +0200 Subject: headscale: add timer for backup --- hosts/sagittarius/headscale.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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" ]; + }; } -- cgit v1.3.1