Keep Windows groups separate

This commit is contained in:
Manuel Thalmann 2024-08-08 15:33:55 +02:00
parent db38cf2207
commit 5beba97c6a

View file

@ -91,13 +91,15 @@
windows.users = mkOption { windows.users = mkOption {
type = types.attrsOf winUserType; type = types.attrsOf winUserType;
description = "The users to create on the Windows machine."; description = "The users to create on the Windows machine.";
default = lib.attrsets.concatMapAttrs ( default = (lib.attrsets.concatMapAttrs (
name: options: name: options:
if builtins.elem name (builtins.attrNames linuxOptions) if builtins.elem name (builtins.attrNames linuxOptions)
then {} then {}
else { else {
${capitalize name} = options; ${capitalize name} = options;
}) cfg.users; }) cfg.users) // {
groups = [];
};
}; };
}; };
}; };