From ea2fd84ecd4139db82769dfeafe6da833146bb99 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 20 Mar 2015 20:58:13 +0100 Subject: 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 Reported-by: devhell <"^"@regexmail.net> Tested-by: devhell <"^"@regexmail.net> --- nixos/modules/services/audio/mpd.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/services/audio') diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index 5afe5f8f46fe..d9b5bf7b5e6f 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -125,6 +125,7 @@ in { }); users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton { + name = "mpd"; gid = gid; }); }; -- cgit 1.4.1