From 60391f4404fbf46f5fcaaacf391511ab4cb0d91e Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 13 Jul 2024 16:20:24 -0700 Subject: [PATCH] feat: add steam and gamescope --- configuration.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/configuration.nix b/configuration.nix index 78bf9da..1fbddf6 100755 --- a/configuration.nix +++ b/configuration.nix @@ -132,6 +132,7 @@ openssh python3 (pkgs.catppuccin-sddm.override { flavor = "mocha"; }) + steam-run ]; environment.variables.EDITOR = "nvim"; @@ -145,6 +146,32 @@ programs.dconf.enable = true; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + gamescopeSession.enable = true; + }; + + nixpkgs.config.packageOverrides = pkgs: { + steam = pkgs.steam.override { + extraPkgs = pkgs: with pkgs; [ + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXScrnSaver + libpng + libpulseaudio + libvorbis + stdenv.cc.cc.lib + libkrb5 + keyutils + ]; + }; + }; + + # List services that you want to enable: # Enable the OpenSSH daemon.