nix/darwin/aerospace.nix
2026-02-04 00:01:10 -06:00

27 lines
491 B
Nix

{
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";
};
}