From 3d146db55c13d8a40f006b9e63e4b3ce78c9409c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 21 Dec 2020 12:50:30 +0100 Subject: [PATCH] restic: Make repository variable (in module) --- modules/restic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/restic.nix b/modules/restic.nix index 3e55571..ff422aa 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -3,6 +3,7 @@ let cfg = config.sbruder.restic; name = "${config.networking.hostName}-system"; + repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; excludes = [ # General "/home/*/Downloads/" @@ -66,9 +67,9 @@ in config = lib.mkIf cfg.enable { services.restic.backups."${name}" = { + inherit repository; passwordFile = toString ; s3CredentialsFile = toString ; - repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic"; paths = lib.mkDefault ( [ ] ++ maybePath /data