agenix
This commit is contained in:
parent
a018670eae
commit
4183ccb893
14 changed files with 169 additions and 38 deletions
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
var,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
@ -36,26 +34,4 @@
|
|||
443
|
||||
];
|
||||
};
|
||||
|
||||
systemd = {
|
||||
timers."backup-rclone" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
Unit = "backup-rclone.service";
|
||||
};
|
||||
};
|
||||
services."backup-rclone" = {
|
||||
script = ''
|
||||
${pkgs.rclone}/bin/rclone copy /home/hd/Documents odc:Documents
|
||||
${pkgs.rclone}/bin/rclone copy /git odc:git
|
||||
'';
|
||||
path = [ pkgs.rclone ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue