Enable gamemode on GLaDOS
This commit is contained in:
		
							parent
							
								
									294916003a
								
							
						
					
					
						commit
						c3512036b1
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		| 
						 | 
					@ -46,6 +46,27 @@
 | 
				
			||||||
    driversi686Linux.amdvlk
 | 
					    driversi686Linux.amdvlk
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  programs.gamemode = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    settings = {
 | 
				
			||||||
 | 
					      general = {
 | 
				
			||||||
 | 
					        renice = 10;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Warning: GPU optimisations have the potential to damage hardware
 | 
				
			||||||
 | 
					      gpu = {
 | 
				
			||||||
 | 
					        apply_gpu_optimisations = "accept-responsibility";
 | 
				
			||||||
 | 
					        gpu_device = 0;
 | 
				
			||||||
 | 
					        amd_performance_level = "high";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      custom = {
 | 
				
			||||||
 | 
					        start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
 | 
				
			||||||
 | 
					        end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  boot.loader.systemd-boot.enable = lib.mkForce false;
 | 
					  boot.loader.systemd-boot.enable = lib.mkForce false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  boot.lanzaboote = {
 | 
					  boot.lanzaboote = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue