Force copying of Linux users to Windows
This commit is contained in:
parent
61af290724
commit
e50e3ff64e
1 changed files with 19 additions and 16 deletions
|
@ -91,23 +91,26 @@
|
||||||
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 (
|
|
||||||
name: options:
|
|
||||||
if builtins.elem name (builtins.attrNames linuxOptions)
|
|
||||||
then {}
|
|
||||||
else {
|
|
||||||
${capitalize name} = (lib.attrsets.concatMapAttrs (
|
|
||||||
name: value:
|
|
||||||
if builtins.elem name (builtins.attrNames linuxOptions)
|
|
||||||
then {}
|
|
||||||
else {
|
|
||||||
${name} = value;
|
|
||||||
}
|
|
||||||
) options) // {
|
|
||||||
groups = [];
|
|
||||||
};
|
|
||||||
}) cfg.users);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
valhalla.windows.users = (lib.attrsets.concatMapAttrs (
|
||||||
|
name: options:
|
||||||
|
if builtins.elem name (builtins.attrNames linuxOptions)
|
||||||
|
then {}
|
||||||
|
else {
|
||||||
|
${capitalize name} = (lib.attrsets.concatMapAttrs (
|
||||||
|
name: value:
|
||||||
|
if builtins.elem name (builtins.attrNames linuxOptions)
|
||||||
|
then {}
|
||||||
|
else {
|
||||||
|
${name} = value;
|
||||||
|
}
|
||||||
|
) options) // {
|
||||||
|
groups = [];
|
||||||
|
};
|
||||||
|
}) cfg.users);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue