From c3512036b198a6897c3626aa22ddbdd16522827f Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 3 Mar 2024 16:36:41 +0100 Subject: [PATCH] Enable gamemode on GLaDOS --- nixos/hosts/GLaDOS/configuration.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nixos/hosts/GLaDOS/configuration.nix b/nixos/hosts/GLaDOS/configuration.nix index 94e947a..0d56557 100644 --- a/nixos/hosts/GLaDOS/configuration.nix +++ b/nixos/hosts/GLaDOS/configuration.nix @@ -46,6 +46,27 @@ driversi686Linux.amdvlk ]; + programs.gamemode = { + enable = true; + settings = { + general = { + renice = 10; + }; + + # Warning: GPU optimisations have the potential to damage hardware + gpu = { + apply_gpu_optimisations = "accept-responsibility"; + gpu_device = 0; + amd_performance_level = "high"; + }; + + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; + }; + }; + }; + boot.loader.systemd-boot.enable = lib.mkForce false; boot.lanzaboote = {