2009-05-29 16:25:56 +02: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
|
|
|
|
|
2007-06-08 17:41:12 +02:00
|
|
|
{
|
2009-05-29 16:25:56 +02:00
|
|
|
require = options;
|
2007-06-08 17:41:12 +02:00
|
|
|
|
2009-05-29 16:25:56 +02:00
|
|
|
ids.uids = {
|
2007-06-08 17:41:12 +02:00
|
|
|
root = 0;
|
|
|
|
nscd = 1;
|
|
|
|
sshd = 2;
|
|
|
|
ntp = 3;
|
|
|
|
messagebus = 4; # D-Bus
|
|
|
|
haldaemon = 5;
|
2007-11-12 17:43:35 +01:00
|
|
|
nagios = 6;
|
2008-02-07 13:41:18 +01:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-02-18 10:15:10 +01:00
|
|
|
bitlbee = 9;
|
2008-03-06 18:11:22 +01:00
|
|
|
avahi = 10;
|
2008-03-16 00:40:44 +01:00
|
|
|
portmap = 11;
|
2008-04-01 12:16:35 +02:00
|
|
|
atd = 12;
|
2008-06-06 11:13:16 +02:00
|
|
|
zabbix = 13;
|
2008-06-30 17:13:02 +02:00
|
|
|
postfix = 14;
|
2008-06-30 23:12:02 +02:00
|
|
|
dovecot = 15;
|
2008-07-06 00:27:36 +02:00
|
|
|
tomcat = 16;
|
2008-09-04 22:28:02 +02:00
|
|
|
gnunetd = 17;
|
2009-01-29 19:28:09 +01:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' GID
|
2009-05-31 20:51:29 +02:00
|
|
|
gpsd = 23;
|
2009-09-26 01:06:38 +02:00
|
|
|
polkituser = 28;
|
|
|
|
uptimed = 29;
|
|
|
|
ddclient = 30;
|
|
|
|
# When adding a uid, make sure it doesn't match an existing gid.
|
2008-03-06 18:11:22 +01:00
|
|
|
|
2007-06-08 17:41:12 +02:00
|
|
|
nixbld = 30000; # start of range of uids
|
|
|
|
nobody = 65534;
|
|
|
|
};
|
|
|
|
|
2009-05-29 16:25:56 +02:00
|
|
|
ids.gids = {
|
2007-06-08 17:41:12 +02:00
|
|
|
root = 0;
|
2007-08-16 17:09:06 +02:00
|
|
|
wheel = 1;
|
2008-07-02 20:03:43 +02:00
|
|
|
kmem = 2;
|
|
|
|
tty = 3;
|
2009-08-16 23:46:26 +02:00
|
|
|
messagebus = 4; # D-Bus
|
2007-06-10 22:13:12 +02:00
|
|
|
haldaemon = 5;
|
2008-07-02 20:03:43 +02:00
|
|
|
disk = 6;
|
2008-02-07 13:41:18 +01:00
|
|
|
vsftpd = 7;
|
|
|
|
ftp = 8;
|
2008-03-26 17:42:57 +01:00
|
|
|
bitlbee = 9;
|
2008-03-06 18:11:22 +01:00
|
|
|
avahi = 10;
|
2008-03-16 00:40:44 +01:00
|
|
|
portmap = 11;
|
2008-04-01 12:16:35 +02:00
|
|
|
atd = 12;
|
2008-06-30 17:13:02 +02:00
|
|
|
postfix = 13;
|
|
|
|
postdrop = 14;
|
2008-06-30 23:12:02 +02:00
|
|
|
dovecot = 15;
|
2007-06-10 22:17:51 +02:00
|
|
|
audio = 17;
|
2008-07-02 20:03:43 +02:00
|
|
|
floppy = 18;
|
|
|
|
uucp = 19;
|
|
|
|
lp = 20;
|
2008-07-06 00:27:36 +02:00
|
|
|
tomcat = 21;
|
2009-01-29 19:28:09 +01:00
|
|
|
pulseaudio = 22; # must match `pulseaudio' UID
|
2009-05-31 20:51:29 +02:00
|
|
|
gpsd = 23;
|
2009-08-11 11:17:30 +02:00
|
|
|
cdrom = 24;
|
|
|
|
tape = 25;
|
|
|
|
video = 26;
|
|
|
|
dialout = 27;
|
2009-09-26 01:06:38 +02:00
|
|
|
polkituser = 28;
|
|
|
|
# When adding a gid, make sure it doesn't match an existing uid.
|
2009-08-11 11:17:30 +02:00
|
|
|
|
2007-06-08 17:41:12 +02:00
|
|
|
users = 100;
|
|
|
|
nixbld = 30000;
|
|
|
|
nogroup = 65534;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|