Made timers their own module
This commit is contained in:
parent
b2687e271a
commit
270a739287
6 changed files with 89 additions and 37 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,5 +37,9 @@
|
|||
terminal = {
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
timers = {
|
||||
backup.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue