default mode
This commit is contained in:
parent
7c5ab1d74a
commit
cdb5fa28d7
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@
|
||||||
mode = lib.mkOption {
|
mode = lib.mkOption {
|
||||||
type = lib.types.strMatching "^[0-7]{4}$";
|
type = lib.types.strMatching "^[0-7]{4}$";
|
||||||
description = "The unix file mode of the file. Must be a 4-digit octal number.";
|
description = "The unix file mode of the file. Must be a 4-digit octal number.";
|
||||||
default = "0400";
|
default = if file.config.group == "root" then "0400" else "0440";
|
||||||
};
|
};
|
||||||
deploy = lib.mkOption {
|
deploy = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue