{ lib, config, pkgs, ... }: with lib; let cfg = config.roles.desktop; in { config = mkMerge [ (mkIf (cfg.enable && cfg.gaming.enable) { environment.systemPackages = with pkgs; [ steam lutris moonlight ]; # Possibly other gaming specific services or settings }) (mkIf (cfg.enable && cfg.gaming.emulation) { environment.systemPackages = with pkgs; [ ryubing dolphin-emu ]; }) ]; }