From 39742c8fbd2d2babb80d13bee028a2a34bbbd0f2 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 8 Jan 2021 21:33:45 +0100 Subject: [PATCH] restic: Remove hostname from service name --- modules/restic.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/restic.nix b/modules/restic.nix index 8b0be71..1ef37c3 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -2,7 +2,6 @@ let cfg = config.sbruder.restic; - name = "${config.networking.hostName}-system"; repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; excludes = [ # Caches @@ -73,7 +72,7 @@ in restic-s3 = { }; }; - services.restic.backups."${name}" = { + services.restic.backups.system = { inherit repository; passwordFile = config.krops.secrets.restic-password.path; s3CredentialsFile = config.krops.secrets.restic-s3.path; @@ -91,7 +90,7 @@ in timerConfig = cfg.timerConfig; }; - systemd.services."restic-backups-${name}".serviceConfig = { + systemd.services."restic-backups-system".serviceConfig = { "Nice" = 10; "IOSchedulingClass" = "best-effort"; "IOSchedulingPriority" = 7;