clanCore/vars: allow mode to be set

fmt
This commit is contained in:
Raymond Barbiero
2025-04-23 22:30:15 -04:00
committed by Jörg Thalheim
parent 785f68b2f6
commit 222915a9ed
5 changed files with 30 additions and 6 deletions

View File

@@ -276,9 +276,9 @@ in
defaultText = lib.literalExpression ''if _class == "darwin" then "wheel" else "root"'';
};
mode = lib.mkOption {
type = lib.types.strMatching "^[0-7]{3}$";
description = "The unix file mode of the file. Must be a 3-digit octal number.";
default = "400";
type = lib.types.strMatching "^[0-7]{4}$";
description = "The unix file mode of the file. Must be a 4-digit octal number.";
default = "0400";
};
value =
lib.mkOption {