20 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { lib, config, ... }: 
 | |
| 
 | |
| let
 | |
|   cfg = config.systemModules.locale;
 | |
|   inherit (lib) mkIf mkDefault;
 | |
| in
 | |
| 
 | |
| {
 | |
|   config = mkIf cfg.enable {
 | |
|     i18n = {
 | |
|       defaultLocale = mkDefault "en_US.UTF-8";
 | |
|       supportedLocales = mkDefault [
 | |
|         "en_US.UTF-8/UTF-8"
 | |
|       ];
 | |
|     };
 | |
|     time.timeZone = mkDefault "Pacific/Auckland";
 | |
|     location.provider = "geoclue2";
 | |
|     services.geoclue2.enable = true;
 | |
|   };
 | |
| }
 |