summary refs log tree commit diff
path: root/nixos/modules/services/audio/mpd.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-20 20:58:13 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-20 20:58:13 +0100
commitea2fd84ecd4139db82769dfeafe6da833146bb99 (patch)
treec91538708099b8a1c25c1f20e2b2f96e9d2e7c85 /nixos/modules/services/audio/mpd.nix
parent2ed5c2bd6b437780a039c217a4bde52010a54519 (diff)
downloadnixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.gz
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.bz2
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.lz
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.xz
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.zst
nixpkgs-ea2fd84ecd4139db82769dfeafe6da833146bb99.zip
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>
Diffstat (limited to 'nixos/modules/services/audio/mpd.nix')
-rw-r--r--nixos/modules/services/audio/mpd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix
index 5afe5f8f46f..d9b5bf7b5e6 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;
     });
   };