# modules/features/steam.nix — Digital distribution platform.## Started by nixmod on 2026-10-11 (template: program).# From NixOS's programs.steam (16 options, as pinned in flake.lock). Everything# is commented out except `enable`: uncomment what you want. Option docs:# nixmod doc programs.steam --nixos# Package: pkgs.steam 1.0.0.87 — https://store.steampowered.com/# TODO: say here why this is on the machine and anything non-obvious.{ ... }:
lettheme=import../_palette.nix; in# the system colours: theme.palette.gold, theme.name …{
flake.nixosModules.steam= { config, lib, pkgs, user, ... }:
let# Values used more than once below.cfg= config.programs.steam;
# colours = theme.palette; # base surface text gold pine foam love rose iris …in {
programs.steam= {
enable=true;
package= pkgs.steam.override {
extraEnv= {
MANGOHUD=true;
OBS_VKCAPTURE=true;
RADV_TEX_ANISO=16;
};
extraLibraries= p: with p; [
atk
];
};
extraCompatPackages=with pkgs; [
proton-ge-bin
];
extraPackages=with pkgs; [
gamescope
];
# fontPackages — list of package# Font packages to use in Steam.# fontPackages = with pkgs; [ source-han-sans ];# gamescopeSession — submodule# Run a GameScope driven Steam session from your display-manager# gamescopeSession = { };# ── dedicatedServer ───────────────────────────────────────────────────# dedicatedServer.openFirewall — boolean# Open ports in the firewall for Source Dedicated Server.# dedicatedServer.openFirewall = false;# ── extest ────────────────────────────────────────────────────────────# extest.enable — boolean# Whether to enable Load the extest library into Steam, to translate X11# input events to uinput events (e.g.# default: false# extest.enable = true;# ── gamescopeSession ──────────────────────────────────────────────────# gamescopeSession.args — list of string# Arguments to be passed to GameScope for the session.# gamescopeSession.args = [ ];# gamescopeSession.enable — boolean# Whether to enable GameScope Session.# default: false# gamescopeSession.enable = true;# gamescopeSession.env — attribute set of string# Environmental variables to be passed to GameScope for the session.# gamescopeSession.env = { };# gamescopeSession.steamArgs — list of string# Arguments to be passed to Steam for the session.# gamescopeSession.steamArgs = [# "-tenfoot"# "-pipewire-dmabuf"# ];# ── localNetworkGameTransfers ─────────────────────────────────────────# localNetworkGameTransfers.openFirewall — boolean# Open ports in the firewall for Steam Local Network Game Transfers.# localNetworkGameTransfers.openFirewall = false;# ── protontricks ──────────────────────────────────────────────────────# protontricks.enable — boolean# Whether to enable protontricks, a simple wrapper for running# Winetricks commands for Proton-enabled games.# default: false# protontricks.enable = true;# protontricks.package — package# The protontricks package to use.# protontricks.package = pkgs.protontricks;# ── remotePlay ────────────────────────────────────────────────────────# remotePlay.openFirewall — boolean# Open ports in the firewall for Steam Remote Play.# remotePlay.openFirewall = false; };
# ── around it ───────────────────────────────────────────────────────────# System packages next to it:# environment.systemPackages = with pkgs; [ ];## Ports, if it listens:# networking.firewall.allowedTCPPorts = [ ];## Groups the user needs (devices, sockets):# users.users.${user}.extraGroups = [ "steam" ];## A file in /etc:# environment.etc."steam/config".text = ''# ''; };
}