2009-05-29 15:25:56 +01:00
|
|
|
# This module defines the global list of uids and gids. We keep a
|
2013-08-10 22:07:13 +01:00
|
|
|
# central list to prevent id collisions.
|
2009-05-29 15:25:56 +01:00
|
|
|
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
ids.uids = pkgs.lib.mkOption {
|
|
|
|
description = ''
|
|
|
|
The user IDs used in NixOS.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
ids.gids = pkgs.lib.mkOption {
|
|
|
|
description = ''
|
|
|
|
The group IDs used in NixOS.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2007-06-08 16:41:12 +01:00
|
|
|
{
|
2009-05-29 15:25:56 +01:00
|
|
|
require = options;
|
2007-06-08 16:41:12 +01:00
|
|
|
|
2009-05-29 15:25:56 +01:00
|
|
|
ids.uids = {
|
2007-06-08 16:41:12 +01:00
|
|
|
root = 0;
|
|
|
|
nscd = 1;
|
|
|
|
sshd = 2;
|
|
|
|
ntp = 3;
|
|
|
|
messagebus = 4; # D-Bus
|
|
|
|
haldaemon = 5;
|
2007-11-12 16:43:35 +00:00
|
|
|
nagios = 6;
|
2008-02-07 12:41:18 +00:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-02-18 09:15:10 +00:00
|
|
|
bitlbee = 9;
|
2008-03-06 17:11:22 +00:00
|
|
|
avahi = 10;
|
2008-03-15 23:40:44 +00:00
|
|
|
portmap = 11;
|
2008-04-01 11:16:35 +01:00
|
|
|
atd = 12;
|
2008-06-06 10:13:16 +01:00
|
|
|
zabbix = 13;
|
2008-06-30 16:13:02 +01:00
|
|
|
postfix = 14;
|
2008-06-30 22:12:02 +01:00
|
|
|
dovecot = 15;
|
2008-07-05 23:27:36 +01:00
|
|
|
tomcat = 16;
|
2009-01-29 18:28:09 +00:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' GID
|
2009-05-31 19:51:29 +01:00
|
|
|
gpsd = 23;
|
2009-09-26 00:06:38 +01:00
|
|
|
polkituser = 28;
|
|
|
|
uptimed = 29;
|
|
|
|
ddclient = 30;
|
2009-10-05 16:11:32 +01:00
|
|
|
davfs2 = 31;
|
2011-09-14 19:20:50 +01:00
|
|
|
privoxy = 32;
|
2010-04-22 16:13:50 +01:00
|
|
|
osgi = 34;
|
2010-08-06 15:52:09 +01:00
|
|
|
tor = 35;
|
|
|
|
cups = 36;
|
2010-09-16 03:06:44 +01:00
|
|
|
foldingAtHome = 37;
|
2010-10-22 14:18:26 +01:00
|
|
|
sabnzbd = 38;
|
2010-11-24 10:45:34 +00:00
|
|
|
kdm = 39;
|
2010-12-15 02:19:44 +00:00
|
|
|
ghostOne = 40;
|
2010-12-17 07:33:20 +00:00
|
|
|
git = 41;
|
2011-04-15 17:10:13 +01:00
|
|
|
fourStore = 42;
|
2011-04-15 17:10:17 +01:00
|
|
|
fourStoreEndpoint = 43;
|
2011-05-31 08:44:17 +01:00
|
|
|
virtuoso = 44;
|
2011-07-26 15:14:10 +01:00
|
|
|
rtkit = 45;
|
2011-10-27 20:43:20 +01:00
|
|
|
dovecot2 = 46;
|
|
|
|
dovenull2 = 47;
|
2011-11-02 20:59:12 +00:00
|
|
|
unbound = 48;
|
2011-11-09 20:48:12 +00:00
|
|
|
prayer = 49;
|
2011-12-05 01:51:05 +00:00
|
|
|
mpd = 50;
|
2012-07-23 15:18:19 +01:00
|
|
|
clamav = 51;
|
2012-07-24 08:51:17 +01:00
|
|
|
fprot = 52;
|
2012-07-26 23:07:25 +01:00
|
|
|
bind = 53;
|
2012-08-03 16:05:25 +01:00
|
|
|
wwwrun = 54;
|
2012-09-28 16:14:33 +01:00
|
|
|
spamd = 56;
|
2012-09-16 17:43:25 +01:00
|
|
|
nslcd = 58;
|
2013-05-06 15:49:23 +01:00
|
|
|
nginx = 60;
|
2013-05-23 03:07:49 +01:00
|
|
|
chrony = 61;
|
2013-07-30 09:20:56 +01:00
|
|
|
smtpd = 63;
|
2013-08-04 23:03:42 +01:00
|
|
|
smtpq = 64;
|
2013-08-04 02:59:18 +01:00
|
|
|
supybot = 65;
|
2013-08-04 23:03:42 +01:00
|
|
|
iodined = 66;
|
2013-08-19 08:06:31 +01:00
|
|
|
graphite = 68;
|
2013-08-21 10:43:37 +01:00
|
|
|
statsd = 69;
|
2013-08-23 10:33:24 +01:00
|
|
|
transmission = 70;
|
|
|
|
postgres = 71;
|
|
|
|
smbguest = 74;
|
|
|
|
varnish = 75;
|
|
|
|
dd-agent = 76;
|
|
|
|
lighttpd = 77;
|
|
|
|
lightdm = 78;
|
|
|
|
freenet = 79;
|
|
|
|
ircd = 80;
|
|
|
|
bacula = 81;
|
|
|
|
almir = 82;
|
|
|
|
deluge = 83;
|
2013-08-26 14:20:25 +01:00
|
|
|
mysql = 84;
|
|
|
|
rabbitmq = 85;
|
|
|
|
activemq = 86;
|
|
|
|
gnunet = 87;
|
|
|
|
oidentd = 88;
|
|
|
|
quassel = 89;
|
|
|
|
amule = 90;
|
|
|
|
minidlna = 91;
|
2013-08-30 17:05:08 +01:00
|
|
|
elasticsearch = 92;
|
2011-04-15 17:10:17 +01:00
|
|
|
|
2009-09-26 00:06:38 +01:00
|
|
|
# When adding a uid, make sure it doesn't match an existing gid.
|
2008-03-06 17:11:22 +00:00
|
|
|
|
2007-06-08 16:41:12 +01:00
|
|
|
nixbld = 30000; # start of range of uids
|
|
|
|
nobody = 65534;
|
|
|
|
};
|
|
|
|
|
2009-05-29 15:25:56 +01:00
|
|
|
ids.gids = {
|
2007-06-08 16:41:12 +01:00
|
|
|
root = 0;
|
2007-08-16 16:09:06 +01:00
|
|
|
wheel = 1;
|
2008-07-02 19:03:43 +01:00
|
|
|
kmem = 2;
|
|
|
|
tty = 3;
|
2009-08-16 22:46:26 +01:00
|
|
|
messagebus = 4; # D-Bus
|
2007-06-10 21:13:12 +01:00
|
|
|
haldaemon = 5;
|
2008-07-02 19:03:43 +01:00
|
|
|
disk = 6;
|
2008-02-07 12:41:18 +00:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-03-26 16:42:57 +00:00
|
|
|
bitlbee = 9;
|
2008-03-06 17:11:22 +00:00
|
|
|
avahi = 10;
|
2008-03-15 23:40:44 +00:00
|
|
|
portmap = 11;
|
2008-04-01 11:16:35 +01:00
|
|
|
atd = 12;
|
2008-06-30 16:13:02 +01:00
|
|
|
postfix = 13;
|
|
|
|
postdrop = 14;
|
2008-06-30 22:12:02 +01:00
|
|
|
dovecot = 15;
|
2007-06-10 21:17:51 +01:00
|
|
|
audio = 17;
|
2008-07-02 19:03:43 +01:00
|
|
|
floppy = 18;
|
|
|
|
uucp = 19;
|
|
|
|
lp = 20;
|
2008-07-05 23:27:36 +01:00
|
|
|
tomcat = 21;
|
2009-01-29 18:28:09 +00:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' UID
|
2009-05-31 19:51:29 +01:00
|
|
|
gpsd = 23;
|
2009-08-11 10:17:30 +01:00
|
|
|
cdrom = 24;
|
|
|
|
tape = 25;
|
|
|
|
video = 26;
|
|
|
|
dialout = 27;
|
2009-09-26 00:06:38 +01:00
|
|
|
polkituser = 28;
|
2010-04-22 14:56:26 +01:00
|
|
|
utmp = 29;
|
2009-10-05 16:11:32 +01:00
|
|
|
davfs2 = 31;
|
|
|
|
privoxy = 32;
|
2010-04-19 14:26:21 +01:00
|
|
|
disnix = 33;
|
2010-04-22 16:13:50 +01:00
|
|
|
osgi = 34;
|
2010-12-15 02:19:44 +00:00
|
|
|
ghostOne = 40;
|
2010-12-17 07:33:20 +00:00
|
|
|
git = 41;
|
2011-04-15 17:10:13 +01:00
|
|
|
fourStore = 42;
|
2011-04-15 17:10:17 +01:00
|
|
|
fourStoreEndpoint = 43;
|
2011-05-31 08:44:17 +01:00
|
|
|
virtuoso = 44;
|
2012-03-22 10:11:15 +00:00
|
|
|
dovecot2 = 46;
|
|
|
|
prayer = 49;
|
|
|
|
mpd = 50;
|
2012-07-23 15:18:19 +01:00
|
|
|
clamav = 51;
|
2012-07-24 08:51:17 +01:00
|
|
|
fprot = 52;
|
2012-08-03 16:05:25 +01:00
|
|
|
wwwrun = 54;
|
2012-09-28 16:14:33 +01:00
|
|
|
adm = 55;
|
|
|
|
spamd = 56;
|
|
|
|
networkmanager = 57;
|
2012-09-16 17:43:25 +01:00
|
|
|
nslcd = 58;
|
2012-12-06 00:57:19 +00:00
|
|
|
scanner = 59;
|
2013-05-06 15:49:23 +01:00
|
|
|
nginx = 60;
|
2013-07-19 20:18:44 +01:00
|
|
|
systemd-journal = 62;
|
2013-07-30 09:20:56 +01:00
|
|
|
smtpd = 63;
|
2013-08-04 23:03:42 +01:00
|
|
|
smtpq = 64;
|
2013-08-04 02:59:18 +01:00
|
|
|
supybot = 65;
|
2013-08-04 23:03:42 +01:00
|
|
|
iodined = 66;
|
2013-08-15 23:47:21 +01:00
|
|
|
libvirtd = 67;
|
2013-08-19 08:06:31 +01:00
|
|
|
graphite = 68;
|
2013-08-23 10:33:24 +01:00
|
|
|
transmission = 70;
|
|
|
|
postgres = 71;
|
|
|
|
vboxusers = 72;
|
|
|
|
vboxsf = 73;
|
|
|
|
smbguest = 74;
|
|
|
|
varnish = 75;
|
|
|
|
dd-agent = 76;
|
|
|
|
lighttpd = 77;
|
|
|
|
lightdm = 78;
|
|
|
|
freenet = 79;
|
|
|
|
ircd = 80;
|
|
|
|
bacula = 81;
|
|
|
|
almir = 82;
|
|
|
|
deluge = 83;
|
2013-08-26 14:20:25 +01:00
|
|
|
mysql = 84;
|
|
|
|
rabbitmq = 85;
|
|
|
|
activemq = 86;
|
|
|
|
gnunet = 87;
|
|
|
|
oidentd = 88;
|
|
|
|
quassel = 89;
|
|
|
|
amule = 90;
|
|
|
|
minidlna = 91;
|
2011-04-15 17:10:17 +01:00
|
|
|
|
2009-09-26 00:06:38 +01:00
|
|
|
# When adding a gid, make sure it doesn't match an existing uid.
|
2009-08-11 10:17:30 +01:00
|
|
|
|
2007-06-08 16:41:12 +01:00
|
|
|
users = 100;
|
|
|
|
nixbld = 30000;
|
|
|
|
nogroup = 65534;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|