Merge branch 'main' of github.com:ooks-io/nix
This commit is contained in:
		
						commit
						47d77e241d
					
				
					 4 changed files with 36 additions and 2 deletions
				
			
		|  | @ -9,7 +9,7 @@ in | |||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     home.sessionVariables.TERMFILEMANAGER = lib.mkIf cfg.default "lf"; | ||||
|     home.sessionVariables.FILEMANAGER = lib.mkIf cfg.default "lf"; | ||||
|    | ||||
|     xdg.configFile."lf/icons".source = ./icons; | ||||
| 
 | ||||
|  |  | |||
|  | @ -26,11 +26,12 @@ in { | |||
|         padding=3,3 | ||||
|         width=100 | ||||
|         height=100 | ||||
|         [app-name="bat-notify"] | ||||
|         [urgency=critical] | ||||
|         padding=3,3 | ||||
|         width=100 | ||||
|         height=100 | ||||
|         anchor=top-center | ||||
|         border-color=${colors.base08} | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
							
								
								
									
										29
									
								
								system/profiles/amd/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								system/profiles/amd/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.systemProfile.amd; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
| 
 | ||||
|     hardware.opengl = { | ||||
|       extraPackages = with pkgs; [ | ||||
|         vulkan-tools | ||||
|         vulkan-loader | ||||
|         vulkan-extension-layer | ||||
|         vulkan-validation-layer | ||||
|         amdvlk | ||||
|         mesa | ||||
|       ]; | ||||
|       extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; | ||||
|     }; | ||||
| 
 | ||||
|     boot = { | ||||
|       initrd.kernelModules = ["amdgpu"]; | ||||
|       kernelModules = ["amdgpu"]; | ||||
|     }; | ||||
| 
 | ||||
|     environment.systemPackages = [ pkgs.nvtopPackages.amd ]; | ||||
|   }; | ||||
| } | ||||
|  | @ -13,6 +13,7 @@ in | |||
|     ./gaming | ||||
|     ./laptop | ||||
|     ./mediaServer | ||||
|     ./amd | ||||
|   ]; | ||||
| 
 | ||||
|   options = { | ||||
|  | @ -34,6 +35,9 @@ in | |||
|       nvidia = { | ||||
|         enable = lib.mkEnableOption "Enable the nvidia profile"; | ||||
|       }; | ||||
|       amd = { | ||||
|         enable = lib.mkEnableOption "Enable the amd profile"; | ||||
|       }; | ||||
|       mediaServer = { | ||||
|         enable = lib.mkEnableOption "Enable the mediaServer profile"; | ||||
|       }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue