ooknet/nixos/modules/gaming/gamescope.nix
2024-06-11 22:37:17 +12:00

16 lines
273 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;
};
};
}