changes to backup service
This commit is contained in:
parent
5994cf0546
commit
0ef7d3c4f1
2 changed files with 5 additions and 5 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue