mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	♻️⚡️ remove with lib; everywhere and partially switch to mkOpt
				
					
				
			This commit is contained in:
		
							parent
							
								
									c5283fe60b
								
							
						
					
					
						commit
						124d6b7ede
					
				
					 27 changed files with 72 additions and 53 deletions
				
			
		| 
						 | 
				
			
			@ -3,29 +3,30 @@
 | 
			
		|||
  namespace,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}: with lib; with lib.${namespace};
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkEnableOption mkIf mkOption;
 | 
			
		||||
  cfg = config.${namespace}.common.locale;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.common.locale = {
 | 
			
		||||
    enable = mkEnableOption "whether to enable common locale tweaks";
 | 
			
		||||
 | 
			
		||||
    language = mkOption {
 | 
			
		||||
      type = types.str;
 | 
			
		||||
      type = lib.types.str;
 | 
			
		||||
      default = "en_US";
 | 
			
		||||
      example = "en_US";
 | 
			
		||||
      description = "Sets the language for most text, doesn't include monetary or measurement settings";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    country = mkOption {
 | 
			
		||||
      type = types.str;
 | 
			
		||||
      type = lib.types.str;
 | 
			
		||||
      default = "de_DE";
 | 
			
		||||
      example = "de_DE";
 | 
			
		||||
      description = "Sets the language used for monetary or measurement settings (USD vs Euro, etc...)";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    keymap = mkOption {
 | 
			
		||||
      type = types.str;
 | 
			
		||||
      type = lib.types.str;
 | 
			
		||||
      default = "de";
 | 
			
		||||
      example = "de";
 | 
			
		||||
      description = "Sets the keymap to be used by the system";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue