rename services
This commit is contained in:
parent
ad38533750
commit
1e92c945a5
|
@ -14,7 +14,7 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
systemd.services.prune-restic = {
|
||||
systemd.services.restic-forget = {
|
||||
serviceConfig = {
|
||||
User = "restic";
|
||||
Type = "oneshot";
|
||||
|
|
|
@ -18,7 +18,7 @@ in
|
|||
};
|
||||
networking.firewall.allowedTCPPorts = [ 8000 ];
|
||||
|
||||
systemd.services.prune-restic = {
|
||||
systemd.services.restic-prune = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = ''
|
||||
${pkgs.restic}/bin/restic \
|
||||
|
@ -28,9 +28,9 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.timers.prune-restic = {
|
||||
systemd.timers.restic-prune = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "prune-restic.service" ];
|
||||
partOf = [ "restic-prune.service" ];
|
||||
timerConfig.OnCalendar = [ "*-*-* 12:00:00" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
systemd.services.prune-restic = {
|
||||
systemd.services.restic-forget = {
|
||||
serviceConfig = {
|
||||
User = custom.username;
|
||||
Type = "oneshot";
|
||||
|
|
Loading…
Reference in New Issue