feat: add steam and gamescope

This commit is contained in:
Youwen Wu 2024-07-13 16:20:24 -07:00
parent 25c9394277
commit 60391f4404
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -132,6 +132,7 @@
openssh openssh
python3 python3
(pkgs.catppuccin-sddm.override { flavor = "mocha"; }) (pkgs.catppuccin-sddm.override { flavor = "mocha"; })
steam-run
]; ];
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
@ -145,6 +146,32 @@
programs.dconf.enable = true; 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: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.