specify option types

This commit is contained in:
Kiara Grouwstra 2025-08-21 11:53:11 +02:00
parent f5ec539a68
commit 8cf40cc342
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -84,15 +84,17 @@
};
owner = lib.mkOption {
description = "The user name or id that will own the file.";
type = lib.types.str;
default = "root";
};
group = lib.mkOption {
description = "The group name or id that will own the file.";
type = lib.types.str;
default = "root";
};
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.";
type = lib.types.strMatching "^[0-7]{4}$";
default = if file.config.group == "root" then "0400" else "0440";
};
deploy = lib.mkOption {