Fix incorrect user conversion

This commit is contained in:
Manuel Thalmann 2024-08-08 17:16:51 +02:00
parent 5beba97c6a
commit 3b45035e57

View file

@ -96,10 +96,17 @@
if builtins.elem name (builtins.attrNames linuxOptions)
then {}
else {
${capitalize name} = options;
}) cfg.users) // {
${capitalize name} = (lib.attrsets.concatMapAttrs (
name: value:
if builtins.elem name (builtins.attrNames linuxOptions)
then {}
else {
${name} = value;
}
) options) // {
groups = [];
};
}) cfg.users);
};
};
};