{ inputs, ... }: { flake-file.inputs.steam-config-nix = { url = "github:different-name/steam-config-nix"; inputs = { nixpkgs.follows = "nixpkgs"; flake-parts.follows = "flake-parts"; }; }; # Declarative Steam config (https://different-name.github.io/steam-config-nix). # The NixOS module needs no user option: it runs steam-config-patcher@ # for every normal user. One file per game lives next to this one # (see half-life-2.nix); app keys are Steam App IDs from the store URL. # # WARNING: anything using the wrapper (args/env/wrappers/preHook/dllOverrides/ # rawLaunchOptions) OVERWRITES the launch options you set by hand in Steam. # Move hand-written strings into rawLaunchOptions instead. # # programs.steam.config = { # onSteamRunning = "wait"; # default; or "close" (waits for games), # # "force-close" (even mid-game), "skip" (next activation) # defaultCompatTool = "proton_experimental"; # or a package: pkgs.proton-ge-bin # apps."1234560" = { # name = "Some Game"; # compatTool = pkgs.proton-ge-bin; # per-game Proton # args = [ "-vulkan" ]; # appended after the game command # env = { MANGOHUD = "1"; DXVK_ASYNC = "1"; TZ = null; }; # null = unset # wrappers = [ "gamemoderun" "mangohud" ]; # outermost first # dllOverrides = { winhttp = "n,b"; }; # -> WINEDLLOVERRIDES # preHook = ''echo "launching $*"''; # runs right before exec # # or the classic Steam string instead of the structured options: # # rawLaunchOptions = "gamemoderun %command%"; # }; # }; den.aspects.software.gaming.nixos = { imports = [ inputs.steam-config-nix.nixosModules.default ]; programs.steam.config.enable = true; }; }