aboutsummaryrefslogtreecommitdiff
path: root/modules/services/backup/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/backup/default.nix')
-rw-r--r--modules/services/backup/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/services/backup/default.nix b/modules/services/backup/default.nix
index 52378d3..f74b5f9 100644
--- a/modules/services/backup/default.nix
+++ b/modules/services/backup/default.nix
@@ -11,7 +11,7 @@ in {
};
passwordFile = mkOption {
- type = types.str;
+ type = types.path;
example = "/var/lib/restic/password.txt";
description = "Read the repository's password from this path";
};
@@ -70,11 +70,10 @@ in {
};
config = lib.mkIf cfg.enable {
- services.restic.backups = {
+ services.restic.backups.system = {
# Take care of included and excluded files
paths = cfg.paths;
- extraBackupArgs = [ "--verbose=2" ]
- ++ lib.optional (builtins.length cfg.exclude != 0) excludeArg;
+ extraBackupArgs = [ "--verbose=2" ];
# Take care of creating the repository if it doesn't exist
initialize = true;
inherit (cfg) passwordFile pruneOpts timerConfig repository;