restic: Remove hostname from service name
This commit is contained in:
parent
a981641273
commit
39742c8fbd
|
@ -2,7 +2,6 @@
|
||||||
let
|
let
|
||||||
cfg = config.sbruder.restic;
|
cfg = config.sbruder.restic;
|
||||||
|
|
||||||
name = "${config.networking.hostName}-system";
|
|
||||||
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
|
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
|
||||||
excludes = [
|
excludes = [
|
||||||
# Caches
|
# Caches
|
||||||
|
@ -73,7 +72,7 @@ in
|
||||||
restic-s3 = { };
|
restic-s3 = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups."${name}" = {
|
services.restic.backups.system = {
|
||||||
inherit repository;
|
inherit repository;
|
||||||
passwordFile = config.krops.secrets.restic-password.path;
|
passwordFile = config.krops.secrets.restic-password.path;
|
||||||
s3CredentialsFile = config.krops.secrets.restic-s3.path;
|
s3CredentialsFile = config.krops.secrets.restic-s3.path;
|
||||||
|
@ -91,7 +90,7 @@ in
|
||||||
timerConfig = cfg.timerConfig;
|
timerConfig = cfg.timerConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."restic-backups-${name}".serviceConfig = {
|
systemd.services."restic-backups-system".serviceConfig = {
|
||||||
"Nice" = 10;
|
"Nice" = 10;
|
||||||
"IOSchedulingClass" = "best-effort";
|
"IOSchedulingClass" = "best-effort";
|
||||||
"IOSchedulingPriority" = 7;
|
"IOSchedulingPriority" = 7;
|
||||||
|
|
Loading…
Reference in a new issue