From e6c80ad5d6e9a3e76a93647112abbfee873e6660 Mon Sep 17 00:00:00 2001 From: moons Date: Sun, 2 Aug 2026 21:48:44 +0900 Subject: [PATCH] gamemode --- modules/applications/gamemode/nixos.nix | 11 ++++++++++- modules/profiles/interface/gui/home.nix | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 modules/profiles/interface/gui/home.nix diff --git a/modules/applications/gamemode/nixos.nix b/modules/applications/gamemode/nixos.nix index cc488cd..a5345a7 100644 --- a/modules/applications/gamemode/nixos.nix +++ b/modules/applications/gamemode/nixos.nix @@ -3,6 +3,15 @@ enable = true; enableRenice = true; - settings.general.renice = 10; + settings = { + general = { + softrealtime = "auto"; + renice = 10; + }; + custom = { + start = "notify-send -a 'Gamemode' 'Optimizations activated'"; + end = "notify-send -a 'Gamemode' 'Optimizations deactivated'"; + }; + }; }; } diff --git a/modules/profiles/interface/gui/home.nix b/modules/profiles/interface/gui/home.nix new file mode 100644 index 0000000..121d290 --- /dev/null +++ b/modules/profiles/interface/gui/home.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + home.packages = [ + pkgs.libnotify + ]; +}