git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/modules/services/monitoring/graphite.nix: don't create graphite user unconditionally

I'm not sure what exactly this user is needed for, i.e. under what circumstances it must exist or not, but creating it unconditionally seems like the wrong thing to do. I complained to @offlinehacker about this on Github, but got no response for a week or so. I'm disabling the extraUsers bit to put out the fire, and now hope that someone who actually knows about Graphite implements a proper solution later.

commit96a7e65c370733e74132836479711948c6824697 authorPeter Simons <simons@cryp.to> dateSun 2 Nov 2014, 12:34 (12 years ago) parent831f3b2
1 file changed+11−9
nixos/modules/services/monitoring/graphite.nix+11−9
nixos/modules/services/monitoring/graphite.nix+11−9
@@ -535,14 +535,16 @@ in {
535535 environment.systemPackages = [ pkgs.pythonPackages.graphite_pager ];
536536 })
537537
538− {
539− users.extraUsers = singleton {
540− name = "graphite";
541− uid = config.ids.uids.graphite;
542− description = "Graphite daemon user";
543− home = dataDir;
544− };
545− users.extraGroups.graphite.gid = config.ids.gids.graphite;
546− }
538+ # Disabled: Don't create this user unconditionally!
539+ #
540+ # {
541+ # users.extraUsers = singleton {
542+ # name = "graphite";
543+ # uid = config.ids.uids.graphite;
544+ # description = "Graphite daemon user";
545+ # home = dataDir;
546+ # };
547+ # users.extraGroups.graphite.gid = config.ids.gids.graphite;
548+ # }
547549 ];
548550}