Files
dev/configs/nixos/modules/desktop/apps/steam.nix

36 lines
738 B
Nix

{
config,
lib,
pkgs,
util,
...
}:
# Steam game launcher and runtime integration.
{
options.modules.desktop.apps.steam.enable = lib.mkEnableOption "Steam game launcher";
config = lib.mkIf config.modules.desktop.apps.steam.enable {
programs.gamemode.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
package = pkgs.steam.override {
extraEnv.STEAM_FORCE_DESKTOPUI_SCALING = "1.5";
};
};
hardware.steam-hardware.enable = true;
programs.gamescope = {
enable = true;
capSysNice = true;
};
registry.window-icon.${config.networking.hostName}.steam = {
class = "[Ss]team";
icon = util.glyph "f1b6";
};
};
}