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