users and passwords

This commit is contained in:
2023-07-20 15:02:38 +03:00
parent 16a8eff543
commit 5313a3ffeb
5 changed files with 62 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ in {
enable = lib.mkEnableOption "backup zfs snapshots with borg";
repo = lib.mkOption {type = str;};
passwdPath = lib.mkOption {type = str;};
passwordPath = lib.mkOption {type = str;};
mountpoints = lib.mkOption {
default = {};
@@ -68,7 +68,7 @@ in {
repo = config.mj.base.zfsborg.repo;
encryption = {
mode = "repokey-blake2";
passCommand = "cat ${config.mj.base.zfsborg.passwdPath}";
passCommand = "cat ${config.mj.base.zfsborg.passwordPath}";
};
paths = attrs.paths;
extraArgs = "--remote-path=borg1";