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>

aszlig ea2fd84e 2ed5c2bd

Changed files
+1
nixos
modules
services
audio
+1
nixos/modules/services/audio/mpd.nix
···
});
users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton {
+
name = "mpd";
gid = gid;
});
};