Made timers their own module

This commit is contained in:
KoenDR06 2025-03-04 16:16:36 +01:00
parent b2687e271a
commit 270a739287
6 changed files with 89 additions and 37 deletions

View file

@ -16,23 +16,5 @@
networking.hostName = "solis";
systemd.timers."backupSyncthing" = {
wantedBy = ["timers.target"];
timerConfig = {
OnCalendar = "weekly";
Persistent = true;
};
};
systemd.services."backupSyncthing" = {
script = ''
/home/horseman/nix-config/misc/backup.sh
'';
serviceConfig = {
Type = "oneshot";
User = "horseman";
};
};
system.stateVersion = "24.11";
}

View file

@ -37,5 +37,9 @@
terminal = {
zsh.enable = true;
};
timers = {
backup.enable = true;
};
};
}