diff options
Diffstat (limited to 'nixos/features/gui/apps/steam.nix')
| -rw-r--r-- | nixos/features/gui/apps/steam.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/features/gui/apps/steam.nix b/nixos/features/gui/apps/steam.nix new file mode 100644 index 0000000..046b814 --- /dev/null +++ b/nixos/features/gui/apps/steam.nix @@ -0,0 +1,31 @@ +{ + config, + pkgs, + lib, + ... +}: let + cfg = config.features.gui.apps.steam; +in { + options.features.gui.apps.steam.enable = lib.mkEnableOption "steam"; + config = lib.mkIf cfg.enable { + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + gamescopeSession.enable = true; + protontricks.enable = true; + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + }; + hardware.steam-hardware.enable = true; + programs.gamemode.enable = true; + environment.systemPackages = [pkgs.mangohud]; + + # Steam Launch Options + # Add this to 3D games: + # LD_PRELOAD="" gamescope --force-grab-cursor --backend sdl -bf -W 1600 -H 900 -- %command% + # Add this to 2D games: + # LD_PRELOAD="" gamescope -bf -W 1600 -H 900 -- %command% + }; +} |
