config changes (not working)

This commit is contained in:
doloro
2025-09-23 11:52:13 +00:00
parent d95ea4ec27
commit 3ad89e10d2
7 changed files with 63 additions and 17 deletions

View File

@@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.steam;
in
{
options = {
modules.steam.enable = lib.mkEnableOption "Steam configuration module";
};
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
# Ensure gamescope is inside the steam "fhs"
package = pkgs.steam.override {
extraLibraries = pkgs: [ pkgs.xorg.libxcb ];
extraPkgs =
pkgs: with pkgs; [
attr
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
mangohud
gamemode
(gamescope.overrideAttrs { enableWsi = true; })
];
};
};
};
}