vars: add file mode

This commit is contained in:
lassulus
2024-12-04 23:28:15 +01:00
parent 15282e5d78
commit 19a251d6fc
4 changed files with 8 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ in
_name: file: {
inherit (file)
name
mode
deploy
secret
neededForUsers

View File

@@ -213,6 +213,10 @@ in
description = "The group name or id that will own the secret file.";
default = "root";
};
mode = lib.mkOption {
type = lib.types.strMatching "^[0-7]{3}$";
default = "400";
};
value =
lib.mkOption {
description = ''