2009-05-29 07:25:56 -07:00
|
|
|
# This module defines the global list of uids and gids. We keep a
|
|
|
|
# central list to prevent id collissions.
|
|
|
|
|
|
|
|
{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 11:20:50 -07:00
|
|
|
|
2007-06-08 08:41:12 -07:00
|
|
|
{
|
2009-05-29 07:25:56 -07:00
|
|
|
require = options;
|
2007-06-08 08:41:12 -07:00
|
|
|
|
2009-05-29 07:25:56 -07:00
|
|
|
ids.uids = {
|
2007-06-08 08:41:12 -07:00
|
|
|
root = 0;
|
|
|
|
nscd = 1;
|
|
|
|
sshd = 2;
|
|
|
|
ntp = 3;
|
|
|
|
messagebus = 4; # D-Bus
|
|
|
|
haldaemon = 5;
|
2007-11-12 08:43:35 -08:00
|
|
|
nagios = 6;
|
2008-02-07 04:41:18 -08:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-02-18 01:15:10 -08:00
|
|
|
bitlbee = 9;
|
2008-03-06 09:11:22 -08:00
|
|
|
avahi = 10;
|
2008-03-15 16:40:44 -07:00
|
|
|
portmap = 11;
|
2008-04-01 03:16:35 -07:00
|
|
|
atd = 12;
|
2008-06-06 02:13:16 -07:00
|
|
|
zabbix = 13;
|
2008-06-30 08:13:02 -07:00
|
|
|
postfix = 14;
|
2008-06-30 14:12:02 -07:00
|
|
|
dovecot = 15;
|
2008-07-05 15:27:36 -07:00
|
|
|
tomcat = 16;
|
2009-01-29 10:28:09 -08:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' GID
|
2009-05-31 11:51:29 -07:00
|
|
|
gpsd = 23;
|
2009-09-25 16:06:38 -07:00
|
|
|
polkituser = 28;
|
|
|
|
uptimed = 29;
|
|
|
|
ddclient = 30;
|
2009-10-05 08:11:32 -07:00
|
|
|
davfs2 = 31;
|
2011-09-14 11:20:50 -07:00
|
|
|
privoxy = 32;
|
2010-04-22 08:13:50 -07:00
|
|
|
osgi = 34;
|
2010-08-06 07:52:09 -07:00
|
|
|
tor = 35;
|
|
|
|
cups = 36;
|
2010-09-15 19:06:44 -07:00
|
|
|
foldingAtHome = 37;
|
2010-10-22 06:18:26 -07:00
|
|
|
sabnzbd = 38;
|
2010-11-24 02:45:34 -08:00
|
|
|
kdm = 39;
|
2010-12-14 18:19:44 -08:00
|
|
|
ghostOne = 40;
|
2010-12-16 23:33:20 -08:00
|
|
|
git = 41;
|
2011-04-15 09:10:13 -07:00
|
|
|
fourStore = 42;
|
2011-04-15 09:10:17 -07:00
|
|
|
fourStoreEndpoint = 43;
|
2011-05-31 00:44:17 -07:00
|
|
|
virtuoso = 44;
|
2011-07-26 07:14:10 -07:00
|
|
|
rtkit = 45;
|
2011-10-27 12:43:20 -07:00
|
|
|
dovecot2 = 46;
|
|
|
|
dovenull2 = 47;
|
2011-11-02 13:59:12 -07:00
|
|
|
unbound = 48;
|
2011-11-09 12:48:12 -08:00
|
|
|
prayer = 49;
|
2011-12-04 17:51:05 -08:00
|
|
|
mpd = 50;
|
2012-07-23 07:18:19 -07:00
|
|
|
clamav = 51;
|
2012-07-24 00:51:17 -07:00
|
|
|
fprot = 52;
|
2012-07-26 15:07:25 -07:00
|
|
|
bind = 53;
|
2012-08-03 08:05:25 -07:00
|
|
|
wwwrun = 54;
|
2012-09-28 08:14:33 -07:00
|
|
|
spamd = 56;
|
2012-09-16 09:43:25 -07:00
|
|
|
nslcd = 58;
|
2013-05-06 07:49:23 -07:00
|
|
|
nginx = 60;
|
2013-05-22 19:07:49 -07:00
|
|
|
chrony = 61;
|
2013-07-30 01:20:56 -07:00
|
|
|
smtpd = 63;
|
2013-08-04 15:03:42 -07:00
|
|
|
smtpq = 64;
|
2013-08-03 18:59:18 -07:00
|
|
|
supybot = 65;
|
2013-08-04 15:03:42 -07:00
|
|
|
iodined = 66;
|
2011-04-15 09:10:17 -07:00
|
|
|
|
2009-09-25 16:06:38 -07:00
|
|
|
# When adding a uid, make sure it doesn't match an existing gid.
|
2008-03-06 09:11:22 -08:00
|
|
|
|
2007-06-08 08:41:12 -07:00
|
|
|
nixbld = 30000; # start of range of uids
|
|
|
|
nobody = 65534;
|
|
|
|
};
|
|
|
|
|
2009-05-29 07:25:56 -07:00
|
|
|
ids.gids = {
|
2007-06-08 08:41:12 -07:00
|
|
|
root = 0;
|
2007-08-16 08:09:06 -07:00
|
|
|
wheel = 1;
|
2008-07-02 11:03:43 -07:00
|
|
|
kmem = 2;
|
|
|
|
tty = 3;
|
2009-08-16 14:46:26 -07:00
|
|
|
messagebus = 4; # D-Bus
|
2007-06-10 13:13:12 -07:00
|
|
|
haldaemon = 5;
|
2008-07-02 11:03:43 -07:00
|
|
|
disk = 6;
|
2008-02-07 04:41:18 -08:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-03-26 09:42:57 -07:00
|
|
|
bitlbee = 9;
|
2008-03-06 09:11:22 -08:00
|
|
|
avahi = 10;
|
2008-03-15 16:40:44 -07:00
|
|
|
portmap = 11;
|
2008-04-01 03:16:35 -07:00
|
|
|
atd = 12;
|
2008-06-30 08:13:02 -07:00
|
|
|
postfix = 13;
|
|
|
|
postdrop = 14;
|
2008-06-30 14:12:02 -07:00
|
|
|
dovecot = 15;
|
2007-06-10 13:17:51 -07:00
|
|
|
audio = 17;
|
2008-07-02 11:03:43 -07:00
|
|
|
floppy = 18;
|
|
|
|
uucp = 19;
|
|
|
|
lp = 20;
|
2008-07-05 15:27:36 -07:00
|
|
|
tomcat = 21;
|
2009-01-29 10:28:09 -08:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' UID
|
2009-05-31 11:51:29 -07:00
|
|
|
gpsd = 23;
|
2009-08-11 02:17:30 -07:00
|
|
|
cdrom = 24;
|
|
|
|
tape = 25;
|
|
|
|
video = 26;
|
|
|
|
dialout = 27;
|
2009-09-25 16:06:38 -07:00
|
|
|
polkituser = 28;
|
2010-04-22 06:56:26 -07:00
|
|
|
utmp = 29;
|
2009-10-05 08:11:32 -07:00
|
|
|
davfs2 = 31;
|
|
|
|
privoxy = 32;
|
2010-04-19 06:26:21 -07:00
|
|
|
disnix = 33;
|
2010-04-22 08:13:50 -07:00
|
|
|
osgi = 34;
|
2010-12-14 18:19:44 -08:00
|
|
|
ghostOne = 40;
|
2010-12-16 23:33:20 -08:00
|
|
|
git = 41;
|
2011-04-15 09:10:13 -07:00
|
|
|
fourStore = 42;
|
2011-04-15 09:10:17 -07:00
|
|
|
fourStoreEndpoint = 43;
|
2011-05-31 00:44:17 -07:00
|
|
|
virtuoso = 44;
|
2012-03-22 03:11:15 -07:00
|
|
|
dovecot2 = 46;
|
|
|
|
prayer = 49;
|
|
|
|
mpd = 50;
|
2012-07-23 07:18:19 -07:00
|
|
|
clamav = 51;
|
2012-07-24 00:51:17 -07:00
|
|
|
fprot = 52;
|
2012-08-03 08:05:25 -07:00
|
|
|
wwwrun = 54;
|
2012-09-28 08:14:33 -07:00
|
|
|
adm = 55;
|
|
|
|
spamd = 56;
|
|
|
|
networkmanager = 57;
|
2012-09-16 09:43:25 -07:00
|
|
|
nslcd = 58;
|
2012-12-05 16:57:19 -08:00
|
|
|
scanner = 59;
|
2013-05-06 07:49:23 -07:00
|
|
|
nginx = 60;
|
2013-07-19 12:18:44 -07:00
|
|
|
systemd-journal = 62;
|
2013-07-30 01:20:56 -07:00
|
|
|
smtpd = 63;
|
2013-08-04 15:03:42 -07:00
|
|
|
smtpq = 64;
|
2013-08-03 18:59:18 -07:00
|
|
|
supybot = 65;
|
2013-08-04 15:03:42 -07:00
|
|
|
iodined = 66;
|
2011-04-15 09:10:17 -07:00
|
|
|
|
2009-09-25 16:06:38 -07:00
|
|
|
# When adding a gid, make sure it doesn't match an existing uid.
|
2009-08-11 02:17:30 -07:00
|
|
|
|
2007-06-08 08:41:12 -07:00
|
|
|
users = 100;
|
|
|
|
nixbld = 30000;
|
|
|
|
nogroup = 65534;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|