36 lines
724 B
Nix
36 lines
724 B
Nix
{ pkgs
|
|
, ...
|
|
}: {
|
|
imports = [
|
|
# ./anyrun.nix
|
|
# ./config.nix
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
gamemode
|
|
steam
|
|
lutris
|
|
wine
|
|
];
|
|
|
|
hardware.xone.enable = true;
|
|
programs.steam.enable = true;
|
|
programs.gamemode.enable = true;
|
|
programs.gamemode = {
|
|
enableRenice = true;
|
|
settings = {
|
|
general = {
|
|
governor = "performance";
|
|
};
|
|
gpu = {
|
|
apply_gpu_optimisations = "accept-responsibility";
|
|
gpu_device = 0;
|
|
amd_performance_level = "high";
|
|
};
|
|
custom = {
|
|
start = "notify-send -a 'Gamemode' 'Optimizations activated'";
|
|
end = "notify-send -a 'Gamemode' 'Optimizations deactivated'";
|
|
};
|
|
};
|
|
};
|
|
}
|