add gaming
This commit is contained in:
20
modules/desktop/gaming/gamemode/default.nix
Normal file
20
modules/desktop/gaming/gamemode/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.gaming.gamemode;
|
||||
in {
|
||||
options.gaming.gamemode = {
|
||||
enable = lib.mkEnableOption "enable lutris";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# enable gamemode for game optimizations
|
||||
# requires setting launch option `gamemoderun %command%`
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user