nixos/mpd: Fix creation of "mpd" group.
The group is specified using a singleton list, so the loaOf merging is done by iterating through the list items with imap, so it enumerates every element and sets that as the default "name" attribute. From lib/types:143: name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}"; So, people get groups like "unnamed-X.Y" instead of "mpd". Signed-off-by: aszlig <aszlig@redmoonstudios.org> Reported-by: devhell <"^"@regexmail.net> Tested-by: devhell <"^"@regexmail.net>
This commit is contained in:
parent
2ed5c2bd6b
commit
ea2fd84ecd
@ -125,6 +125,7 @@ in {
|
||||
});
|
||||
|
||||
users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton {
|
||||
name = "mpd";
|
||||
gid = gid;
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user