diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-18 19:28:59 +0200 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-18 19:29:18 +0200 |
| commit | a76fcc0cc6167c601f9d48964528235478c37a3a (patch) | |
| tree | d753ed8ee4902215eda5c1ebe9357c26eeac0a8c /hosts | |
| parent | ce38133328292ce9e44442a8021049fc8a322e95 (diff) | |
headscale: add timer for backup
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" ]; + }; } |
