| 
									
										
										
										
											2009-05-29 14:25:56 +00: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 15:41:12 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2009-05-29 14:25:56 +00:00
										 |  |  |   require = options; | 
					
						
							| 
									
										
										
										
											2007-06-08 15:41:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-29 14:25:56 +00:00
										 |  |  |   ids.uids = { | 
					
						
							| 
									
										
										
										
											2007-06-08 15:41:12 +00: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 10:16:35 +00:00
										 |  |  |     atd = 12; | 
					
						
							| 
									
										
										
										
											2008-06-06 09:13:16 +00:00
										 |  |  |     zabbix = 13; | 
					
						
							| 
									
										
										
										
											2008-06-30 15:13:02 +00:00
										 |  |  |     postfix = 14; | 
					
						
							| 
									
										
										
										
											2008-06-30 21:12:02 +00:00
										 |  |  |     dovecot = 15; | 
					
						
							| 
									
										
										
										
											2008-07-05 22:27:36 +00:00
										 |  |  |     tomcat = 16; | 
					
						
							| 
									
										
										
										
											2008-09-04 20:28:02 +00:00
										 |  |  |     gnunetd = 17; | 
					
						
							| 
									
										
										
										
											2009-01-29 18:28:09 +00:00
										 |  |  |     pulseaudio = 22; # must match `pulseaudio' GID | 
					
						
							| 
									
										
										
										
											2009-05-31 18:51:29 +00:00
										 |  |  |     gpsd = 23; | 
					
						
							| 
									
										
										
										
											2009-09-25 23:06:38 +00:00
										 |  |  |     polkituser = 28; | 
					
						
							|  |  |  |     uptimed = 29; | 
					
						
							|  |  |  |     ddclient = 30; | 
					
						
							| 
									
										
										
										
											2009-10-05 15:11:32 +00:00
										 |  |  |     davfs2 = 31; | 
					
						
							| 
									
										
										
										
											2010-04-19 13:26:21 +00:00
										 |  |  |     privoxy = 32;     | 
					
						
							| 
									
										
										
										
											2010-04-22 15:13:50 +00:00
										 |  |  |     osgi = 34; | 
					
						
							| 
									
										
										
										
											2010-07-03 15:10:48 +00:00
										 |  |  |     sabnzbd = 33; | 
					
						
							| 
									
										
										
										
											2010-08-06 14:52:09 +00:00
										 |  |  |     tor = 35; | 
					
						
							|  |  |  |     cups = 36; | 
					
						
							| 
									
										
										
										
											2010-09-16 02:06:44 +00:00
										 |  |  |     foldingAtHome = 37; | 
					
						
							| 
									
										
										
										
											2009-09-25 23:06:38 +00: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 15:41:12 +00:00
										 |  |  |     nixbld = 30000; # start of range of uids | 
					
						
							|  |  |  |     nobody = 65534; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-29 14:25:56 +00:00
										 |  |  |   ids.gids = { | 
					
						
							| 
									
										
										
										
											2007-06-08 15:41:12 +00:00
										 |  |  |     root = 0; | 
					
						
							| 
									
										
										
										
											2007-08-16 15:09:06 +00:00
										 |  |  |     wheel = 1; | 
					
						
							| 
									
										
										
										
											2008-07-02 18:03:43 +00:00
										 |  |  |     kmem = 2; | 
					
						
							|  |  |  |     tty = 3; | 
					
						
							| 
									
										
										
										
											2009-08-16 21:46:26 +00:00
										 |  |  |     messagebus = 4; # D-Bus | 
					
						
							| 
									
										
										
										
											2007-06-10 20:13:12 +00:00
										 |  |  |     haldaemon = 5; | 
					
						
							| 
									
										
										
										
											2008-07-02 18:03:43 +00: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 10:16:35 +00:00
										 |  |  |     atd = 12; | 
					
						
							| 
									
										
										
										
											2008-06-30 15:13:02 +00:00
										 |  |  |     postfix = 13; | 
					
						
							|  |  |  |     postdrop = 14; | 
					
						
							| 
									
										
										
										
											2008-06-30 21:12:02 +00:00
										 |  |  |     dovecot = 15; | 
					
						
							| 
									
										
										
										
											2007-06-10 20:17:51 +00:00
										 |  |  |     audio = 17; | 
					
						
							| 
									
										
										
										
											2008-07-02 18:03:43 +00:00
										 |  |  |     floppy = 18; | 
					
						
							|  |  |  |     uucp = 19; | 
					
						
							|  |  |  |     lp = 20; | 
					
						
							| 
									
										
										
										
											2008-07-05 22:27:36 +00:00
										 |  |  |     tomcat = 21; | 
					
						
							| 
									
										
										
										
											2009-01-29 18:28:09 +00:00
										 |  |  |     pulseaudio = 22; # must match `pulseaudio' UID | 
					
						
							| 
									
										
										
										
											2009-05-31 18:51:29 +00:00
										 |  |  |     gpsd = 23; | 
					
						
							| 
									
										
										
										
											2009-08-11 09:17:30 +00:00
										 |  |  |     cdrom = 24; | 
					
						
							|  |  |  |     tape = 25; | 
					
						
							|  |  |  |     video = 26; | 
					
						
							|  |  |  |     dialout = 27; | 
					
						
							| 
									
										
										
										
											2009-09-25 23:06:38 +00:00
										 |  |  |     polkituser = 28; | 
					
						
							| 
									
										
										
										
											2010-04-22 13:56:26 +00:00
										 |  |  |     utmp = 29; | 
					
						
							| 
									
										
										
										
											2009-10-05 15:11:32 +00:00
										 |  |  |     davfs2 = 31; | 
					
						
							|  |  |  |     privoxy = 32; | 
					
						
							| 
									
										
										
										
											2010-04-19 13:26:21 +00:00
										 |  |  |     disnix = 33; | 
					
						
							| 
									
										
										
										
											2010-04-22 15:13:50 +00:00
										 |  |  |     osgi = 34; | 
					
						
							| 
									
										
										
										
											2009-09-25 23:06:38 +00:00
										 |  |  |     # When adding a gid, make sure it doesn't match an existing uid. | 
					
						
							| 
									
										
										
										
											2009-08-11 09:17:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-06-08 15:41:12 +00:00
										 |  |  |     users = 100; | 
					
						
							|  |  |  |     nixbld = 30000; | 
					
						
							|  |  |  |     nogroup = 65534; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |