This commit is contained in:
2026-03-24 08:46:46 +01:00
parent 34ecdaf528
commit 260da9cbfc
2 changed files with 1 additions and 22 deletions

View File

@@ -143,7 +143,6 @@
casks = [
"1password"
"alcove"
"aerospace"
"aqua-voice"
"ghostty@tip"
"helium-browser"

View File

@@ -3,19 +3,9 @@
lib,
pkgs,
...
}: let
aerospaceApp = "/Applications/AeroSpace.app/Contents/MacOS/AeroSpace";
in {
}: {
programs.aerospace = {
enable = true;
package =
pkgs.emptyDirectory.overrideAttrs (old: {
meta =
(old.meta or {})
// {
mainProgram = "aerospace";
};
});
launchd.enable = true;
settings = {
start-at-login = true;
@@ -154,15 +144,5 @@
};
};
};
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;
};
}