From 4285b7aa31a00998ea3b02ba576c212d9b8e48ce Mon Sep 17 00:00:00 2001 From: Sergei Bulavintsev Date: Mon, 12 Aug 2024 16:00:57 +0300 Subject: [PATCH] feat(nix): add aerospace module --- .../darwin/desktop/aerospace/default.nix | 20 +++++++++++++++++++ nix/systems/aarch64-darwin/mbp16/default.nix | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 nix/modules/darwin/desktop/aerospace/default.nix diff --git a/nix/modules/darwin/desktop/aerospace/default.nix b/nix/modules/darwin/desktop/aerospace/default.nix new file mode 100644 index 0000000..353315a --- /dev/null +++ b/nix/modules/darwin/desktop/aerospace/default.nix @@ -0,0 +1,20 @@ +{ + lib, + config, + ... +}: +with lib; +with lib.custom; let + cfg = config.custom.desktop.aerospace; +in { + options.custom.desktop.addons.aerospace = { + enable = mkEnableOption "Enable tiling window manager aerospace."; + }; + + config = mkIf cfg.enable { + homebrew = { + taps = ["nikitabobko/tap"]; + casks = ["nikitabobko/tap/aerospace"]; + }; + }; +} diff --git a/nix/systems/aarch64-darwin/mbp16/default.nix b/nix/systems/aarch64-darwin/mbp16/default.nix index f6732b3..b19a3cb 100644 --- a/nix/systems/aarch64-darwin/mbp16/default.nix +++ b/nix/systems/aarch64-darwin/mbp16/default.nix @@ -14,7 +14,7 @@ with lib.custom; { virt-manager = disabled; }; - desktop.yabai = disabled; + desktop.aerospace = enabled; desktop.addons.wezterm = enabled; };