meow
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{ modules, ... }:
|
||||
{
|
||||
modules.gamemode = {
|
||||
homeManager =
|
||||
{ home, ... }:
|
||||
{
|
||||
|
||||
};
|
||||
nixos =
|
||||
{ nixos, ... }:
|
||||
{
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
enableRenice = true;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
ioprio = 0;
|
||||
inhibit_screensaver = 1;
|
||||
disable_splitlock = 1;
|
||||
};
|
||||
cpu = {
|
||||
park_cores = "no";
|
||||
pin_cores = "yes";
|
||||
};
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 1;
|
||||
nv_powermizer_mode = 1;
|
||||
nv_perf_level = -1;
|
||||
};
|
||||
script = {
|
||||
gamestart = "nvidia-smi --power-limit=175";
|
||||
gamestop = "nvidia-smi --power-limit=125";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,18 @@
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
package = (
|
||||
pkgs.gamescope.overrideAttrs {
|
||||
enableWsi = true;
|
||||
# Fixes some games being blurry under wayland backend
|
||||
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
|
||||
}
|
||||
);
|
||||
# Breaks steam launching gamescope
|
||||
# capSysNice = true;
|
||||
};
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
@@ -26,13 +38,8 @@
|
||||
libkrb5
|
||||
keyutils
|
||||
mangohud
|
||||
gamemode
|
||||
# gamemode
|
||||
lsof
|
||||
(gamescope.overrideAttrs {
|
||||
enableWsi = true;
|
||||
# Fixes some games being blurry under wayland backend
|
||||
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user