Force copying of Linux users to Windows

This commit is contained in:
Manuel Thalmann 2024-08-19 00:54:13 +02:00
parent 430ecdb8e1
commit 0ca38432e3

View file

@ -91,7 +91,12 @@
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 ( };
};
};
config = {
valhalla.windows.users = (lib.attrsets.concatMapAttrs (
name: options: name: options:
if builtins.elem name (builtins.attrNames linuxOptions) if builtins.elem name (builtins.attrNames linuxOptions)
then {} then {}
@ -108,6 +113,4 @@
}; };
}) cfg.users); }) cfg.users);
}; };
};
};
} }