nixos/btrbk: add extraArgs option (#460724)

This commit is contained in:
Sandro
2026-05-06 22:21:57 +00:00
committed by GitHub
+11 -1
View File
@@ -10,6 +10,7 @@ let
concatMap
concatMapStringsSep
concatStringsSep
escapeShellArgs
filterAttrs
getAttr
isAttrs
@@ -275,6 +276,15 @@ in
];
description = "What actions can be performed with this SSH key. See ssh_filter_btrbk(1) for details";
};
extraArgs = mkOption {
type = listOf str;
description = "Additional arguments to pass to ssh_filter_btrbk";
default = [ ];
example = [
"--log"
"--restrict-path <path>"
];
};
};
});
default = [ ];
@@ -335,7 +345,7 @@ in
in
''command="${pkgs.util-linux}/bin/ionice -t -c ${toString ioniceClass} ${
optionalString (cfg.niceness >= 1) "${pkgs.coreutils}/bin/nice -n ${toString cfg.niceness}"
} ${pkgs.btrbk}/share/btrbk/scripts/ssh_filter_btrbk.sh ${sudo_doas_flag} ${options}" ${v.key}''
} ${pkgs.btrbk}/share/btrbk/scripts/ssh_filter_btrbk.sh ${sudo_doas_flag} ${options} ${escapeShellArgs v.extraArgs}" ${v.key}''
) cfg.sshAccess;
};
users.groups.btrbk = { };