gamescope try again

This commit is contained in:
cnst
2024-06-30 08:34:27 +02:00
parent d42f003788
commit 8f5a19a7af
4 changed files with 27 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
{pkgs, ...}: {
programs.gamemode = {
enable = true;
settings = {
general = {
renice = 10;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
amd_performance_level = "high";
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
}

View File

@@ -0,0 +1,5 @@
{
programs.gamescope = {
enable = true;
};
}

View File

@@ -1,4 +1,5 @@
{pkgs, ...}: {
environment.variables.AMD_VULKAN_ICD = "RADV";
programs = {
steam = {
enable = true;
@@ -24,23 +25,5 @@
];
};
};
gamemode = {
enable = true;
settings = {
general = {
renice = 10;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
amd_performance_level = "high";
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
};
environment.variables.AMD_VULKAN_ICD = "RADV";
}