changes to backup service

This commit is contained in:
KoenDR06 2025-07-18 15:12:07 +02:00
parent 5994cf0546
commit 0ef7d3c4f1
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ in {
};
config = mkIf cfg.enable {
systemd.timers."backupSyncthing" = {
systemd.timers."backup" = {
wantedBy = ["timers.target"];
timerConfig = {
OnCalendar = "daily";
@ -25,13 +25,13 @@ in {
};
};
systemd.services."backupSyncthing" = {
systemd.services."backup" = {
script = ''
/home/horseman/nix-config/misc/backup.sh
'';
serviceConfig = {
Type = "oneshot";
User = "horseman";
User = "root";
};
};
};