{ x, inputs, pkgs, lib, config, ... }: with lib; with x; let cfg = config.module.programs.hyprland; h = inputs.hyprland.packages.${pkgs.system}; in { options = { module.programs.hyprland = { enable = mkBool; }; }; config = mkIf cfg.enable { programs.hyprland = True // { package = h.hyprland; portalPackage = h.xdg-desktop-portal-hyprland; }; }; }