{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.games.steam; in { options.nixfiles.modules.games.steam.enable = mkEnableOption "Steam runtime"; config = mkIf cfg.enable { nixfiles.modules = { common.nix.allowedUnfreePackages = [ "steam" "steam-run" "steam-unwrapped" ]; games = { enable32BitSupport = true; gamemode.enable = true; mangohud.enable = true; }; }; hm.home.packages = with pkgs; [ (steam.override { extraEnv.MANGOHUD = 1; }) protontricks ]; }; }