all repos — nixfiles @ 9d916eb4c365e57a938af8b8ecbcd306f2b0ebae

System and user configuration, managed by nix and home-manager

gaming: configure gamemoderun
Alan Pearce alan@alanpearce.eu
Mon, 20 Jun 2022 16:03:34 +0200
commit

9d916eb4c365e57a938af8b8ecbcd306f2b0ebae

parent

353a995f0b19fd6725e75c50911500a5cc8321d2

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M system/settings/gaming.nixsystem/settings/gaming.nix
@@ -4,6 +4,16 @@ {   programs.steam.enable = true;
   programs.gamemode = {
     enable = true;
+    settings = {
+      general = {
+        renice = 1;
+      };
+
+      custom = {
+        start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
+        end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
+      };
+    };
   };
   hardware.steam-hardware.enable = true;
   hardware.opengl.driSupport32Bit = true;