summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/munin.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-02-07 23:08:15 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-02-07 23:08:15 +0100
commitdb12d783ffd753145119c22a34ca5945e9a7a4ce (patch)
tree7447b786f65712558ddbb7a5f4c8e86151c78f03 /nixos/modules/services/monitoring/munin.nix
parentf163bce98dd3b35840af6037b56737ef1785e13b (diff)
downloadnixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar.gz
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar.bz2
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar.lz
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar.xz
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.tar.zst
nixpkgs-db12d783ffd753145119c22a34ca5945e9a7a4ce.zip
nixos: add uid/gid for munin
To be compatible with eb2f44c18cb6d300e965308547d8a4dea110f519 (Generate
/etc/passwd and /etc/group at build time). Without this you'll get this:

  $ nixos-rebuild build
  [...]
  user-thrown exception: The option `users.extraGroups.unnamed-9.1.gid' is used but not defined.
Diffstat (limited to 'nixos/modules/services/monitoring/munin.nix')
-rw-r--r--nixos/modules/services/monitoring/munin.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix
index 153f4942902..39c4fb1aefa 100644
--- a/nixos/modules/services/monitoring/munin.nix
+++ b/nixos/modules/services/monitoring/munin.nix
@@ -173,10 +173,12 @@ in
       name = "munin";
       description = "Munin monitoring user";
       group = "munin";
+      uid = config.ids.uids.munin;
     }];
 
     users.extraGroups = [{
       name = "munin";
+      gid = config.ids.gids.munin;
     }];
 
   }) (mkIf nodeCfg.enable {