From e27ad55ae9fd86d6765dd2657e3397978b068879 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:49:37 +0100 Subject: [PATCH] Switch from home-manager steam to system steam couldn't connect to server or sth. like that otherwise --- home/features/games/default.nix | 2 +- hosts/common/optional/gaming/steam.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hosts/common/optional/gaming/steam.nix diff --git a/home/features/games/default.nix b/home/features/games/default.nix index 7e45005..b4688b5 100644 --- a/home/features/games/default.nix +++ b/home/features/games/default.nix @@ -1,5 +1,5 @@ {pkgs, ...}: { imports = [ - ./steam.nix + # ./steam.nix ]; } diff --git a/hosts/common/optional/gaming/steam.nix b/hosts/common/optional/gaming/steam.nix new file mode 100644 index 0000000..2920e76 --- /dev/null +++ b/hosts/common/optional/gaming/steam.nix @@ -0,0 +1,18 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs.unstable; [ + heroic # Game Launcher + lutris # Game Launcher + steam # Game Launcher + ]; + + programs = { + steam = { + enable = true; + remotePlay.openFirewall = true; + gamescopeSession.enable = false; + }; + # 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 + }; +}