refactor(darwin): install GUI apps via homebrew

This commit is contained in:
2026-03-23 09:25:05 +00:00
parent 4adc8329a1
commit 4defd577d3
3 changed files with 20 additions and 10 deletions

View File

@@ -141,10 +141,13 @@
homebrew = {
enable = true;
casks = [
"1password"
"alcove"
"aerospace"
"aqua-voice"
"ghostty@tip"
"helium-browser"
"raycast"
"tidal"
];
};

View File

@@ -3,15 +3,12 @@
lib,
pkgs,
...
}: {
home.packages = with pkgs;
lib.optionals stdenv.isDarwin [
_1password-gui
raycast
];
}: let
aerospaceApp = "/Applications/AeroSpace.app/Contents/MacOS/AeroSpace";
in {
programs.aerospace = {
enable = true;
package = pkgs.emptyDirectory;
launchd.enable = true;
settings = {
start-at-login = true;
@@ -150,5 +147,15 @@
};
};
};
home.file.".aerospace.toml".onChange =
lib.mkForce ''
if [ -x "${aerospaceApp}" ]; then
echo "AeroSpace config changed, reloading..."
"${aerospaceApp}" reload-config || true
fi
'';
launchd.agents.aerospace.config.Program = lib.mkForce aerospaceApp;
};
}

View File

@@ -13,7 +13,7 @@
(den.lib.perHost {
includes = [den.aspects.host-darwin-base];
darwin = {pkgs, ...}: {
darwin = {...}: {
networking.hostName = "chidi";
networking.computerName = "chidi";
@@ -24,8 +24,8 @@
path = "/run/secrets/opencode-api-key";
};
environment.systemPackages = with pkgs; [
slack
homebrew.casks = [
"slack"
];
};
})