feat(steam): add Steam desktop module

This commit is contained in:
2026-08-01 23:33:09 -04:00
parent eb67944e68
commit 1e80216b07
5 changed files with 35 additions and 0 deletions

24
modules/desktop/steam.nix Normal file
View File

@@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}:
# Steam game launcher and runtime integration.
let
cfg = config.modules.desktop.steam;
in
{
options.modules.desktop.steam.enable = lib.mkEnableOption "Steam game launcher";
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
package = pkgs.steam.override {
extraEnv.STEAM_FORCE_DESKTOPUI_SCALING = "1.5";
};
};
hardware.steam-hardware.enable = true;
};
}