From 360c218344af0a57ac461a4e2e08d81b400840cd Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 23 Jan 2024 12:00:44 +0800 Subject: [PATCH] docs: gamemode --- modules/nixos/base/networking.nix | 1 + modules/nixos/desktop/game/gamemode.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/modules/nixos/base/networking.nix b/modules/nixos/base/networking.nix index b072ec5e..b2e11606 100644 --- a/modules/nixos/base/networking.nix +++ b/modules/nixos/base/networking.nix @@ -18,6 +18,7 @@ # Network discovery, mDNS # With this enabled, you can access your machine at .local # it's more convenient than using the IP address. + # https://avahi.org/ services.avahi = { enable = true; nssmdns4 = true; diff --git a/modules/nixos/desktop/game/gamemode.nix b/modules/nixos/desktop/game/gamemode.nix index 78e3d15d..ee2e765a 100644 --- a/modules/nixos/desktop/game/gamemode.nix +++ b/modules/nixos/desktop/game/gamemode.nix @@ -26,6 +26,16 @@ powerprofilesctl set power-saver ''; in { + # Optimise Linux system performance on demand + # https://github.com/FeralInteractive/GameMode + # https://wiki.archlinux.org/title/Gamemode + # + # Usage: + # 1. For games/launchers which integrate GameMode support: + # https://github.com/FeralInteractive/GameMode#apps-with-gamemode-integration + # simply running the game will automatically activate GameMode. + # 2. For others, launching the game through gamemoderun: `gamemoderun ./game` + # 3. For steam: `gamemoderun steam-runtime` programs.gamemode = { enable = true; settings = {