vars: export also file owner & group to deployment.json
This commit is contained in:
@@ -51,6 +51,8 @@ in
|
|||||||
_name: file: {
|
_name: file: {
|
||||||
inherit (file)
|
inherit (file)
|
||||||
name
|
name
|
||||||
|
owner
|
||||||
|
group
|
||||||
mode
|
mode
|
||||||
deploy
|
deploy
|
||||||
secret
|
secret
|
||||||
|
|||||||
@@ -206,15 +206,16 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
owner = lib.mkOption {
|
owner = lib.mkOption {
|
||||||
description = "The user name or id that will own the secret file.";
|
description = "The user name or id that will own the file.";
|
||||||
default = "root";
|
default = "root";
|
||||||
};
|
};
|
||||||
group = lib.mkOption {
|
group = lib.mkOption {
|
||||||
description = "The group name or id that will own the secret file.";
|
description = "The group name or id that will own the file.";
|
||||||
default = "root";
|
default = "root";
|
||||||
};
|
};
|
||||||
mode = lib.mkOption {
|
mode = lib.mkOption {
|
||||||
type = lib.types.strMatching "^[0-7]{3}$";
|
type = lib.types.strMatching "^[0-7]{3}$";
|
||||||
|
description = "The unix file mode of the file. Must be a 3-digit octal number.";
|
||||||
default = "400";
|
default = "400";
|
||||||
};
|
};
|
||||||
value =
|
value =
|
||||||
|
|||||||
Reference in New Issue
Block a user