default mode

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

View file

@ -93,7 +93,7 @@
mode = lib.mkOption {
type = lib.types.strMatching "^[0-7]{4}$";
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 {
description = ''