feat: add gamemode and gamescope /w CAP_SYS_NICE
This commit is contained in:
parent
7f361458ed
commit
5339eeebce
1 changed files with 8 additions and 1 deletions
|
|
@ -5,11 +5,12 @@
|
||||||
zw.gaming.enable = lib.mkEnableOption "Enable Gaming";
|
zw.gaming.enable = lib.mkEnableOption "Enable Gaming";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://wiki.nixos.org/wiki/Category:Gaming
|
||||||
config = lib.mkIf config.zw.gaming.enable {
|
config = lib.mkIf config.zw.gaming.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
mangohud
|
mangohud
|
||||||
protonup-qt
|
protonup-qt
|
||||||
# lutris # TODO: Having an issue after flake update
|
lutris # TODO: Having an issue after flake update
|
||||||
bottles
|
bottles
|
||||||
heroic
|
heroic
|
||||||
];
|
];
|
||||||
|
|
@ -20,5 +21,11 @@
|
||||||
protontricks.enable = true;
|
protontricks.enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
programs.gamescope = {
|
||||||
|
enable = true;
|
||||||
|
capSysNice = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue