diff options
Diffstat (limited to '')
-rw-r--r-- | modules/services/backup/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/backup/default.nix b/modules/services/backup/default.nix index aefd383..2db1aa8 100644 --- a/modules/services/backup/default.nix +++ b/modules/services/backup/default.nix @@ -67,6 +67,15 @@ in { When to run the backup. See man systemd.timer for details. ''; }; + + user = mkOption { + type = types.str; + default = "root"; + description = '' + As which user the backup should run. + ''; + example = "postgresql"; + }; }; config = lib.mkIf cfg.enable { @@ -76,7 +85,7 @@ in { extraBackupArgs = [ "--verbose=2" ]; # Take care of creating the repository if it doesn't exist initialize = true; - inherit (cfg) passwordFile pruneOpts timerConfig repository; + inherit (cfg) passwordFile pruneOpts timerConfig repository user; }; }; } |