nixpkgs/nixos/modules/misc/ids.nix

534 lines
12 KiB
Nix
Raw Normal View History

# This module defines the global list of uids and gids. We keep a
# central list to prevent id collisions.
{ config, pkgs, lib, ... }:
{
options = {
ids.uids = lib.mkOption {
2013-10-30 20:37:45 +04:00
internal = true;
description = ''
The user IDs used in NixOS.
'';
};
ids.gids = lib.mkOption {
2013-10-30 20:37:45 +04:00
internal = true;
description = ''
The group IDs used in NixOS.
'';
};
};
config = {
ids.uids = {
root = 0;
#wheel = 1; # unused
#kmem = 2; # unused
#tty = 3; # unused
messagebus = 4; # D-Bus
haldaemon = 5;
#disk = 6; # unused
vsftpd = 7;
ftp = 8;
bitlbee = 9;
avahi = 10;
nagios = 11;
atd = 12;
postfix = 13;
#postdrop = 14; # unused
dovecot = 15;
tomcat = 16;
#audio = 17; # unused
#floppy = 18; # unused
#uucp = 19; # unused
#lp = 20; # unused
#proc = 21; # unused
pulseaudio = 22; # must match `pulseaudio' GID
gpsd = 23;
#cdrom = 24; # unused
#tape = 25; # unused
#video = 26; # unused
#dialout = 27; # unused
polkituser = 28;
#utmp = 29; # unused
ddclient = 30;
davfs2 = 31;
privoxy = 32;
#disnix = 33; # unused
osgi = 34;
tor = 35;
cups = 36;
foldingathome = 37;
sabnzbd = 38;
kdm = 39;
ghostone = 40;
git = 41;
fourstore = 42;
fourstorehttp = 43;
virtuoso = 44;
rtkit = 45;
dovecot2 = 46;
dovenull2 = 47;
unbound = 48;
prayer = 49;
mpd = 50;
clamav = 51;
fprot = 52;
bind = 53;
wwwrun = 54;
#adm = 55; # unused
spamd = 56;
#networkmanager = 57; # unused
nslcd = 58;
#scanner = 59; # unused
nginx = 60;
chrony = 61;
#systemd-journal = 62; # unused
smtpd = 63;
smtpq = 64;
supybot = 65;
iodined = 66;
#libvirtd = 67; # unused
graphite = 68;
statsd = 69;
transmission = 70;
postgres = 71;
#vboxusers = 72; # unused
#vboxsf = 73; # unused
smbguest = 74; # unused
varnish = 75;
datadog = 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;
tcpcryptd = 93; # tcpcryptd uses a hard-coded uid. We patch it in Nixpkgs to match this choice.
#connman = 94; # unused
firebird = 95;
#keys = 96; # unused
2013-10-29 18:55:25 +04:00
haproxy = 97;
mongodb = 98;
openldap = 99;
#users = 100; # unused
2014-01-13 03:18:05 +04:00
cgminer = 101;
munin = 102;
logcheck = 103;
nix-ssh = 104;
dictd = 105;
2014-02-27 17:33:30 +04:00
couchdb = 106;
2014-03-07 23:09:59 +04:00
searx = 107;
2014-03-12 11:32:56 +04:00
kippo = 108;
jenkins = 109;
systemd-journal-gateway = 110;
#notbit = 111; # unused
2014-03-20 06:04:35 +04:00
ngircd = 112;
btsync = 113;
minecraft = 114;
2014-04-01 21:20:33 +04:00
monetdb = 115;
rippled = 116;
murmur = 117;
foundationdb = 118;
newrelic = 119;
starbound = 120;
hydra = 122;
spiped = 123;
teamspeak = 124;
2014-05-28 00:54:43 +04:00
influxdb = 125;
nsd = 126;
gitolite = 127;
znc = 128;
2014-07-15 18:16:58 +04:00
polipo = 129;
mopidy = 130;
#docker = 131; # unused
gdm = 132;
dhcpd = 133;
2014-07-10 22:08:38 +04:00
siproxd = 134;
2014-07-09 02:43:26 +04:00
mlmmj = 135;
2014-08-17 01:53:26 +04:00
neo4j = 136;
riemann = 137;
riemanndash = 138;
radvd = 139;
2014-08-24 19:43:45 +04:00
zookeeper = 140;
dnsmasq = 141;
2014-09-01 10:53:00 +04:00
uhub = 142;
2014-09-26 12:44:09 +04:00
yandexdisk = 143;
collectd = 144;
consul = 145;
2014-09-26 12:03:29 +04:00
mailpile = 146;
2014-10-07 12:53:01 +04:00
redmine = 147;
2014-10-06 23:25:10 +04:00
seeks = 148;
prosody = 149;
2014-11-09 11:44:47 +03:00
i2pd = 150;
2014-11-20 02:01:44 +03:00
systemd-network = 152;
systemd-resolve = 153;
systemd-timesync = 154;
2014-11-21 01:30:24 +03:00
liquidsoap = 155;
2014-11-15 18:27:27 +03:00
etcd = 156;
2014-11-21 19:20:14 +03:00
docker-registry = 157;
2014-11-20 14:29:07 +03:00
hbase = 158;
2014-11-20 15:00:53 +03:00
opentsdb = 159;
2014-11-20 17:38:04 +03:00
scollector = 160;
2014-11-20 17:49:45 +03:00
bosun = 161;
2014-11-29 18:46:39 +03:00
kubernetes = 162;
2014-12-01 18:40:42 +03:00
peerflix = 163;
2014-12-03 17:49:14 +03:00
chronos = 164;
gitlab = 165;
2014-12-21 01:38:52 +03:00
tox-bootstrapd = 166;
2014-12-28 22:21:41 +03:00
cadvisor = 167;
nylon = 168;
apache-kafka = 169;
2014-12-08 12:02:57 +03:00
panamax = 170;
exim = 172;
#fleet = 173; # unused
#input = 174; # unused
2015-03-02 20:58:35 +03:00
sddm = 175;
tss = 176;
memcached = 177;
ntp = 179;
zabbix = 180;
redis = 181;
unifi = 183;
uptimed = 184;
zope2 = 185;
ripple-data-api = 186;
2015-03-27 13:48:50 +03:00
mediatomb = 187;
rdnssd = 188;
2015-04-11 01:09:31 +03:00
ihaskell = 189;
2015-04-15 13:52:06 +03:00
i2p = 190;
2015-04-14 02:06:37 +03:00
lambdabot = 191;
2015-04-17 01:53:26 +03:00
asterisk = 192;
plex = 193;
bird = 195;
2015-04-25 17:02:44 +03:00
grafana = 196;
2015-06-08 14:36:05 +03:00
skydns = 197;
2015-06-08 13:58:33 +03:00
ripple-rest = 198;
nix-serve = 199;
2015-06-20 23:33:57 +03:00
tvheadend = 200;
uwsgi = 201;
2015-06-09 01:11:24 +03:00
gitit = 202;
riemanntools = 203;
subsonic = 204;
2015-07-21 13:16:18 +03:00
riak = 205;
2015-08-01 02:15:18 +03:00
shout = 206;
2015-07-31 07:22:44 +03:00
gateone = 207;
2015-09-08 20:24:40 +03:00
namecoin = 208;
2015-09-10 19:10:06 +03:00
dnschain = 209;
2015-09-14 09:27:31 +03:00
#lxd = 210; # unused
2015-09-19 01:18:43 +03:00
kibana = 211;
2015-09-13 15:49:19 +03:00
xtreemfs = 212;
2015-09-28 06:31:17 +03:00
calibre-server = 213;
2015-11-16 17:26:07 +03:00
heapster = 214;
bepasty = 215;
pumpio = 216;
nm-openvpn = 217;
2015-09-08 10:17:21 +03:00
mathics = 218;
2016-01-03 05:36:19 +03:00
ejabberd = 219;
2016-01-06 06:04:50 +03:00
postsrsd = 220;
2016-01-07 01:10:56 +03:00
opendkim = 221;
2016-01-07 04:17:42 +03:00
dspam = 222;
2015-08-03 20:04:10 +03:00
gale = 223;
2016-01-08 17:12:00 +03:00
matrix-synapse = 224;
2016-01-12 12:06:46 +03:00
rspamd = 225;
2016-01-14 12:17:27 +03:00
rmilter = 226;
2016-01-17 15:11:09 +03:00
cfdyndns = 227;
gammu-smsd = 228;
pdnsd = 229;
2016-02-14 14:58:09 +03:00
octoprint = 230;
avahi-autoipd = 231;
2016-02-26 17:19:46 +03:00
nntp-proxy = 232;
2016-03-12 17:38:13 +03:00
mjpg-streamer = 233;
radicale = 234;
hydra-queue-runner = 235;
hydra-www = 236;
syncthing = 237;
mfi = 238;
2016-04-05 04:30:21 +03:00
caddy = 239;
taskd = 240;
2016-04-12 07:17:05 +03:00
factorio = 241;
2016-04-23 16:49:33 +03:00
emby = 242;
graylog = 243;
2016-05-11 07:18:38 +03:00
sniproxy = 244;
nzbget = 245;
mosquitto = 246;
toxvpn = 247;
2016-06-11 15:46:02 +03:00
squeezelite = 248;
2016-06-21 13:59:29 +03:00
turnserver = 249;
smokeping = 250;
gocd-agent = 251;
gocd-server = 252;
2016-08-07 04:58:38 +03:00
terraria = 253;
2014-12-08 12:02:57 +03:00
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
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;
#nagios = 11; # unused
atd = 12;
postfix = 13;
postdrop = 14;
dovecot = 15;
tomcat = 16;
audio = 17;
floppy = 18;
uucp = 19;
lp = 20;
proc = 21;
pulseaudio = 22; # must match `pulseaudio' UID
gpsd = 23;
cdrom = 24;
tape = 25;
video = 26;
dialout = 27;
#polkituser = 28; # currently unused, polkitd doesn't need a group
utmp = 29;
#ddclient = 30; # unused
davfs2 = 31;
privoxy = 32;
disnix = 33;
osgi = 34;
tor = 35;
#cups = 36; # unused
#foldingathome = 37; # unused
#sabnzd = 38; # unused
#kdm = 39; # unused
ghostone = 40;
git = 41;
fourstore = 42;
fourstorehttp = 43;
virtuoso = 44;
#rtkit = 45; # unused
dovecot2 = 46;
#dovenull = 47; # unused
#unbound = 48; # unused
prayer = 49;
mpd = 50;
clamav = 51;
fprot = 52;
#bind = 53; # unused
wwwrun = 54;
adm = 55;
spamd = 56;
networkmanager = 57;
nslcd = 58;
scanner = 59;
nginx = 60;
chrony = 61;
systemd-journal = 62;
smtpd = 63;
smtpq = 64;
supybot = 65;
iodined = 66;
libvirtd = 67;
graphite = 68;
#statsd = 69; # unused
transmission = 70;
postgres = 71;
vboxusers = 72;
vboxsf = 73;
smbguest = 74; # unused
varnish = 75;
datadog = 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;
#tcpcryptd = 93; # unused
connman = 94;
firebird = 95;
keys = 96;
haproxy = 97;
#mongodb = 98; # unused
openldap = 99;
munin = 102;
#logcheck = 103; # unused
#nix-ssh = 104; # unused
dictd = 105;
2014-02-27 17:33:30 +04:00
couchdb = 106;
2014-03-07 23:09:59 +04:00
searx = 107;
2014-03-12 11:32:56 +04:00
kippo = 108;
jenkins = 109;
systemd-journal-gateway = 110;
#notbit = 111; # unused
#ngircd = 112; # unused
2014-12-28 14:47:12 +03:00
btsync = 113;
#minecraft = 114; # unused
monetdb = 115;
#ripped = 116; # unused
#murmur = 117; # unused
foundationdb = 118;
newrelic = 119;
starbound = 120;
hydra = 122;
spiped = 123;
teamspeak = 124;
2014-05-28 00:54:43 +04:00
influxdb = 125;
nsd = 126;
#gitolite = 127; # unused
znc = 128;
2014-07-15 18:16:58 +04:00
polipo = 129;
mopidy = 130;
docker = 131;
gdm = 132;
#dhcpcd = 133; # unused
2014-07-10 22:08:38 +04:00
siproxd = 134;
2014-07-09 02:43:26 +04:00
mlmmj = 135;
#neo4j = 136; # unused
riemann = 137;
riemanndash = 138;
#radvd = 139; # unused
#zookeeper = 140; # unused
#dnsmasq = 141; # unused
2014-09-01 10:53:00 +04:00
uhub = 142;
#yandexdisk = 143; # unused
#collectd = 144; # unused
#consul = 145; # unused
2014-09-26 12:03:29 +04:00
mailpile = 146;
2014-10-07 12:53:01 +04:00
redmine = 147;
2014-10-06 23:25:10 +04:00
seeks = 148;
prosody = 149;
2014-11-09 11:44:47 +03:00
i2pd = 150;
2014-11-20 02:01:44 +03:00
systemd-network = 152;
systemd-resolve = 153;
systemd-timesync = 154;
2014-11-21 01:30:24 +03:00
liquidsoap = 155;
#etcd = 156; # unused
#docker-registry = 157; # unused
2015-03-03 22:21:36 +03:00
hbase = 158;
opentsdb = 159;
2015-01-05 13:58:17 +03:00
scollector = 160;
bosun = 161;
kubernetes = 162;
#peerflix = 163; # unused
#chronos = 164; # unused
2015-01-05 13:58:17 +03:00
gitlab = 165;
2015-03-03 22:21:36 +03:00
nylon = 168;
2014-12-08 12:02:57 +03:00
panamax = 170;
exim = 172;
2015-03-03 22:21:36 +03:00
fleet = 173;
input = 174;
2015-03-02 20:58:35 +03:00
sddm = 175;
tss = 176;
#memcached = 177; # unused
#ntp = 179; # unused
#zabbix = 180; # unused
#redis = 181; # unused
#unifi = 183; # unused
#uptimed = 184; # unused
#zope2 = 185; # unused
#ripple-data-api = 186; #unused
2015-03-27 13:48:50 +03:00
mediatomb = 187;
#rdnssd = 188; # unused
2015-04-11 01:09:31 +03:00
ihaskell = 189;
2015-04-15 13:52:06 +03:00
i2p = 190;
2015-04-14 02:06:37 +03:00
lambdabot = 191;
2015-04-17 01:53:26 +03:00
#asterisk = 192; # unused
plex = 193;
sabnzbd = 194;
bird = 195;
2015-04-25 17:02:44 +03:00
#grafana = 196; #unused
2015-06-08 14:36:05 +03:00
#skydns = 197; #unused
2015-06-08 13:58:33 +03:00
#ripple-rest = 198; #unused
#nix-serve = 199; #unused
2015-06-20 23:33:57 +03:00
#tvheadend = 200; #unused
uwsgi = 201;
2015-06-09 01:11:24 +03:00
gitit = 202;
riemanntools = 203;
subsonic = 204;
2015-07-21 13:16:18 +03:00
riak = 205;
2015-08-01 02:15:18 +03:00
#shout = 206; #unused
2015-07-31 07:22:44 +03:00
gateone = 207;
namecoin = 208;
2015-09-10 19:10:06 +03:00
#dnschain = 209; #unused
2015-09-14 09:27:31 +03:00
lxd = 210; # unused
2015-09-19 01:18:43 +03:00
#kibana = 211;
2015-09-13 15:49:19 +03:00
xtreemfs = 212;
2015-09-28 06:31:17 +03:00
calibre-server = 213;
bepasty = 215;
pumpio = 216;
nm-openvpn = 217;
2015-09-08 10:17:21 +03:00
mathics = 218;
2016-01-03 05:36:19 +03:00
ejabberd = 219;
2016-01-06 06:04:50 +03:00
postsrsd = 220;
2016-01-07 01:10:56 +03:00
opendkim = 221;
2016-01-07 04:17:42 +03:00
dspam = 222;
2015-08-03 20:04:10 +03:00
gale = 223;
2016-01-08 17:12:00 +03:00
matrix-synapse = 224;
2016-01-12 12:06:46 +03:00
rspamd = 225;
2016-01-14 12:17:27 +03:00
rmilter = 226;
2016-01-17 15:11:09 +03:00
cfdyndns = 227;
pdnsd = 229;
2016-02-14 14:58:09 +03:00
octoprint = 230;
radicale = 234;
syncthing = 237;
#mfi = 238; # unused
2016-04-05 04:30:21 +03:00
caddy = 239;
taskd = 240;
2016-04-12 07:17:05 +03:00
factorio = 241;
2016-04-23 16:49:33 +03:00
emby = 242;
2016-05-11 07:18:38 +03:00
sniproxy = 244;
nzbget = 245;
mosquitto = 246;
#toxvpn = 247; # unused
2016-06-11 15:46:02 +03:00
#squeezelite = 248; #unused
2016-06-21 13:59:29 +03:00
turnserver = 249;
smokeping = 250;
gocd-agent = 251;
gocd-server = 252;
2016-08-07 04:58:38 +03:00
terraria = 253;
2015-01-05 13:58:17 +03:00
# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal
# uids and gids. Also, don't use gids above 399!
users = 100;
nixbld = 30000;
nogroup = 65534;
};
};
}