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
				
			
		| 
						 | 
				
			
			@ -4,18 +4,15 @@
 | 
			
		|||
  namespace,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}: with lib; with lib.${namespace};
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkEnableOption mkIf;
 | 
			
		||||
  inherit (lib.${namespace}) mkOpt;
 | 
			
		||||
  cfg = config.${namespace}.common.kernel;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.common.kernel = {
 | 
			
		||||
    enable = mkEnableOption "Modify the standard kernel settings";
 | 
			
		||||
    version = mkOption {
 | 
			
		||||
      type = types.str;
 | 
			
		||||
      default = "linuxPackages_latest";
 | 
			
		||||
      example = "linuxPackages_latest";
 | 
			
		||||
      description = "Set the kernel version to be used by your system";
 | 
			
		||||
    };
 | 
			
		||||
    version = mkOpt lib.types.str "linuxPackages_latest" "Set the kernel version to be used by your system";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue