{ pkgs, lib, config, ... }: let cfg = config.gaming.steam; in { options.gaming.steam = { enable = lib.mkEnableOption "enable steam"; }; config = lib.mkIf cfg.enable { programs.steam = { enable = true; # requires setting launch option `gamescope %command%` gamescopeSession.enable = true; }; }; }