| 
									
										
										
										
											2014-04-14 16:26:48 +02:00
										 |  |  | { config, lib, pkgs, ... }: | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-14 16:26:48 +02:00
										 |  |  | with lib; | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-21 18:26:13 +02:00
										 |  |  | let | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   tzdir = "${pkgs.tzdata}/share/zoneinfo"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | in | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-27 19:36:03 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  |   options = { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |     time = { | 
					
						
							| 
									
										
										
										
											2013-04-22 18:56:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |       timeZone = mkOption { | 
					
						
							| 
									
										
										
										
											2014-12-15 16:28:40 +01:00
										 |  |  |         default = "UTC"; | 
					
						
							| 
									
										
										
										
											2013-10-30 11:02:04 +01:00
										 |  |  |         type = types.str; | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |         example = "America/New_York"; | 
					
						
							| 
									
										
										
										
											2014-12-15 16:28:40 +01:00
										 |  |  |         description = ''
 | 
					
						
							|  |  |  |           The time zone used when displaying times and dates. See <link | 
					
						
							|  |  |  |           xlink:href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"/> | 
					
						
							|  |  |  |           for a comprehensive list of possible values for this setting. | 
					
						
							|  |  |  |         '';
 | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |       }; | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-11 15:33:34 -04:00
										 |  |  |       hardwareClockInLocalTime = mkOption { | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |         default = false; | 
					
						
							| 
									
										
										
										
											2015-07-19 16:49:23 +00:00
										 |  |  |         type = types.bool; | 
					
						
							| 
									
										
										
										
											2012-07-11 15:33:34 -04:00
										 |  |  |         description = "If set, keep the hardware clock in local time instead of UTC."; | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |       }; | 
					
						
							| 
									
										
										
										
											2013-04-22 18:56:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-07-02 21:34:27 +02:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-27 19:36:03 +00:00
										 |  |  |   config = { | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-13 17:56:46 +02:00
										 |  |  |     environment.sessionVariables.TZDIR = "/etc/zoneinfo"; | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-21 18:26:13 +02:00
										 |  |  |     systemd.globalEnvironment.TZDIR = tzdir; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-06 18:23:41 +01:00
										 |  |  |     environment.etc.localtime = | 
					
						
							| 
									
										
										
										
											2014-05-21 18:26:13 +02:00
										 |  |  |       { source = "${tzdir}/${config.time.timeZone}"; | 
					
						
							| 
									
										
										
										
											2014-01-06 18:23:41 +01:00
										 |  |  |         mode = "direct-symlink"; | 
					
						
							|  |  |  |       }; | 
					
						
							| 
									
										
										
										
											2013-04-22 19:08:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     environment.etc.zoneinfo.source = "${pkgs.tzdata}/share/zoneinfo"; | 
					
						
							| 
									
										
										
										
											2013-04-22 18:56:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-27 19:36:03 +00:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2013-04-22 18:56:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-27 23:14:38 +00:00
										 |  |  | } |