aboutsummaryrefslogtreecommitdiff
path: root/hosts/sagittarius/headscale.nix
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-08-18 19:28:59 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-08-18 19:29:18 +0200
commita76fcc0cc6167c601f9d48964528235478c37a3a (patch)
treed753ed8ee4902215eda5c1ebe9357c26eeac0a8c /hosts/sagittarius/headscale.nix
parentce38133328292ce9e44442a8021049fc8a322e95 (diff)
headscale: add timer for backup
Diffstat (limited to 'hosts/sagittarius/headscale.nix')
-rw-r--r--hosts/sagittarius/headscale.nix7
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" ];
+ };
}