default mode

This commit is contained in:
Kiara Grouwstra 2025-08-13 11:02:12 +02:00
parent 4076073fc9
commit c268638fd7
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -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 = ''