aboutsummaryrefslogtreecommitdiff
path: root/hosts/herra/steam.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/herra/steam.nix')
-rw-r--r--hosts/herra/steam.nix20
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