gamescope try again
This commit is contained in:
@@ -32,6 +32,8 @@ in {
|
|||||||
../core
|
../core
|
||||||
../extra/steam
|
../extra/steam
|
||||||
../extra/nix-ld
|
../extra/nix-ld
|
||||||
|
../extra/gamescope
|
||||||
|
../extra/gamemode
|
||||||
../services/cnix.nix
|
../services/cnix.nix
|
||||||
../hardware/cnix.nix
|
../hardware/cnix.nix
|
||||||
../locale/cnix.nix
|
../locale/cnix.nix
|
||||||
|
|||||||
19
hosts/extra/gamemode/default.nix
Normal file
19
hosts/extra/gamemode/default.nix
Normal 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'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
hosts/extra/gamescope/default.nix
Normal file
5
hosts/extra/gamescope/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.gamescope = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
environment.variables.AMD_VULKAN_ICD = "RADV";
|
||||||
programs = {
|
programs = {
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
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";
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user