refactor(darwin): install GUI apps via homebrew
This commit is contained in:
@@ -141,10 +141,13 @@
|
|||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
casks = [
|
casks = [
|
||||||
|
"1password"
|
||||||
"alcove"
|
"alcove"
|
||||||
|
"aerospace"
|
||||||
"aqua-voice"
|
"aqua-voice"
|
||||||
"ghostty@tip"
|
"ghostty@tip"
|
||||||
"helium-browser"
|
"helium-browser"
|
||||||
|
"raycast"
|
||||||
"tidal"
|
"tidal"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,15 +3,12 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
home.packages = with pkgs;
|
aerospaceApp = "/Applications/AeroSpace.app/Contents/MacOS/AeroSpace";
|
||||||
lib.optionals stdenv.isDarwin [
|
in {
|
||||||
_1password-gui
|
|
||||||
raycast
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.aerospace = {
|
programs.aerospace = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.emptyDirectory;
|
||||||
launchd.enable = true;
|
launchd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
start-at-login = true;
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
(den.lib.perHost {
|
(den.lib.perHost {
|
||||||
includes = [den.aspects.host-darwin-base];
|
includes = [den.aspects.host-darwin-base];
|
||||||
|
|
||||||
darwin = {pkgs, ...}: {
|
darwin = {...}: {
|
||||||
networking.hostName = "chidi";
|
networking.hostName = "chidi";
|
||||||
networking.computerName = "chidi";
|
networking.computerName = "chidi";
|
||||||
|
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
path = "/run/secrets/opencode-api-key";
|
path = "/run/secrets/opencode-api-key";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
homebrew.casks = [
|
||||||
slack
|
"slack"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user