forked from fabian/nix
		
	modularize steam
This commit is contained in:
		
							parent
							
								
									a09e88cf3e
								
							
						
					
					
						commit
						8b8aa68811
					
				
					 6 changed files with 30 additions and 18 deletions
				
			
		|  | @ -8,5 +8,6 @@ | |||
|     ./terminal | ||||
|     ./neovim.nix | ||||
|     ./baseline.nix | ||||
|     ./steam | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										21
									
								
								home/modules/steam/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								home/modules/steam/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { | ||||
|   pkgs, | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| with lib; let | ||||
|   cfg = config.local.apps.steam; | ||||
| in { | ||||
|   options.local.apps.steam = { | ||||
|     enable = mkEnableOption "Steam settings"; | ||||
|   }; | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = [ | ||||
|       (pkgs.callPackage ./package.nix {}) | ||||
|       pkgs.protonup | ||||
|       pkgs.winetricks | ||||
|       pkgs.protontricks | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
|  | @ -5,7 +5,6 @@ | |||
|   ... | ||||
| }: { | ||||
|   imports = [ | ||||
|     ./steam | ||||
|   ]; | ||||
| 
 | ||||
|   home.packages = with pkgs; [ | ||||
|  |  | |||
|  | @ -1,14 +0,0 @@ | |||
| { | ||||
|   pkgs, | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: | ||||
| with lib; { | ||||
|   home.packages = [ | ||||
|     (pkgs.callPackage ./package.nix {}) | ||||
|     pkgs.protonup | ||||
|     pkgs.winetricks | ||||
|     pkgs.protontricks | ||||
|   ]; | ||||
| } | ||||
|  | @ -12,9 +12,14 @@ | |||
|     ./isolation.nix | ||||
|   ]; | ||||
| 
 | ||||
|   local.baseline.enable = true; | ||||
|   local.apps.terminal.enable = true; | ||||
|   local.apps.neovim.enable = true; | ||||
|   local = { | ||||
|     baseline.enable = true; | ||||
|     apps = { | ||||
|       terminal.enable = true; | ||||
|       neovim.enable = true; | ||||
|       steam.enable = true; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   nix.registry = { | ||||
|     "system".to = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue