17 lines
		
	
	
	
		
			277 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			277 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib) mkIf;
 | 
						|
  cfg = config.ooknet.gaming.gamescope;
 | 
						|
in {
 | 
						|
  config = mkIf cfg.enable {
 | 
						|
    hardware.opengl.extraPackages = [pkgs.gamescope];
 | 
						|
    programs.gamescope = {
 | 
						|
      enable = true;
 | 
						|
      capSysNice = true;
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |