!qol(restructure): heavy restructure

This commit is contained in:
2025-12-10 21:37:23 +00:00
parent b5c2089694
commit f1337d3edd
114 changed files with 2 additions and 360 deletions

47
modules/steam/nixos.nix Normal file
View File

@@ -0,0 +1,47 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.steam;
in
{
options.modules.steam = {
enable = lib.mkEnableOption "steam";
};
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
lsof
(gamescope.overrideAttrs {
enableWsi = true;
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
})
];
};
};
};
}