git signing
This commit is contained in:
parent
fc85e43c82
commit
a018670eae
5 changed files with 69 additions and 8 deletions
|
|
@ -1,7 +1,9 @@
|
|||
{ var, config, ... }:
|
||||
let
|
||||
headscale-domain = "headscale.hdohmen.de";
|
||||
in
|
||||
{
|
||||
var,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services = {
|
||||
nginx = {
|
||||
|
|
@ -34,4 +36,26 @@ in
|
|||
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