diff options
| author | WolfQuery <qwertman783@outlook.com> | 2026-04-14 19:29:56 +0200 |
|---|---|---|
| committer | WolfQuery <qwertman783@outlook.com> | 2026-04-14 19:29:56 +0200 |
| commit | 4e438bebc975e7176adf0604e514a0e22f6bee31 (patch) | |
| tree | 9560ea93c636cc14a005eb312565ce7eaad68c1b | |
| parent | 3a9adb070ba12350be3df6de30caea2dcb6d3c6c (diff) | |
finished confgiuring steam runtime for herra
| -rw-r--r-- | hosts/herra/steam.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/hosts/herra/steam.nix b/hosts/herra/steam.nix index a916af3..e3d5142 100644 --- a/hosts/herra/steam.nix +++ b/hosts/herra/steam.nix @@ -1,21 +1,27 @@ -{lib, ...}: { +{lib, pkgs, ...}: { programs.steam = { enable = true; - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server - localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers + package = pkgs.steam.override { + extraEnv = { + LD_PRELOAD = "${pkgs.gamemode.lib}/lib/libgamemodeauto.so"; + }; + extraLibraries = pkgs: with pkgs; [ + gamemode + ]; + }; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; }; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - # Allow some unfree dependencies "steam" "steam-original" "steam-unwrapped" "steam-run" ]; - # Allow steam to execute appimage games programs.appimage.enable = true; programs.appimage.binfmt = true; -} +}
\ No newline at end of file |
