Added creation of the disnix group on first startup, if the disnix service is enabled

svn path=/nixos/trunk/; revision=21164
wip/yesman
Sander van der Burg 14 years ago
parent a008d6b391
commit 2936d7062d
  1. 3
      modules/misc/ids.nix
  2. 5
      modules/services/misc/disnix.nix

@ -51,7 +51,7 @@ in
uptimed = 29;
ddclient = 30;
davfs2 = 31;
privoxy = 32;
privoxy = 32;
# When adding a uid, make sure it doesn't match an existing gid.
nixbld = 30000; # start of range of uids
@ -89,6 +89,7 @@ in
polkituser = 28;
davfs2 = 31;
privoxy = 32;
disnix = 33;
# When adding a gid, make sure it doesn't match an existing uid.
users = 100;

@ -36,6 +36,11 @@ in
services.dbus.enable = true;
services.dbus.packages = [ pkgs.disnix ];
users.extraGroups = singleton
{ name = "disnix";
gid = config.ids.gids.disnix;
};
jobs.disnix =
{ description = "Disnix server";

Loading…
Cancel
Save