From 90b805e002152a08f9df334d849101e877be7a8e Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:53:04 +0200 Subject: [PATCH] Add gaming support --- modules/programs/games.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/programs/games.nix diff --git a/modules/programs/games.nix b/modules/programs/games.nix new file mode 100644 index 0000000..8854d12 --- /dev/null +++ b/modules/programs/games.nix @@ -0,0 +1,24 @@ +{ + config, + pkgs, + nur, + lib, + unstable, + ... +}: { + environment.systemPackages = [ + unstable.heroic # Game Launcher + unstable.lutris # Game Launcher + unstable.steam # Game Launcher + ]; + + programs = { + steam = { + enable = true; + }; + gamemode.enable = true; # Better Gaming Performance + # Steam: Right-click game - Properties - Launch options: gamemoderun %command% + # Lutris: General Preferences - Enable Feral GameMode + # - Global options - Add Environment Variables: LD_PRELOAD=/nix/store/*-gamemode-*-lib/lib/libgamemodeauto.so + }; +}