{ lib, config, dots, pkgs, inputs, ... }: let cfg = config.custom.gui.aerospace; in { options.custom.gui = with lib; { aerospace = { enable = mkEnableOption "Enable aerospace"; }; }; config = lib.mkIf cfg.enable { hm.home.packages = [ inputs.aerospace-scratchpad.packages.${pkgs.stdenv.hostPlatform.system}.default ]; hm.xdg.configFile."aerospace".source = config.hm.lib.file.mkOutOfStoreSymlink "${dots}/config/aerospace"; }; }