diff --git a/home/roles/aerospace/default.nix b/home/roles/aerospace/default.nix index b638cea..a8bec0b 100644 --- a/home/roles/aerospace/default.nix +++ b/home/roles/aerospace/default.nix @@ -169,15 +169,6 @@ in "Redo" = "@$z"; # Cmd+Shift+Z }; }) - - # Hide macOS menu bar when SketchyBar is enabled - # Note: Requires logout/login to take effect - (mkIf cfg.sketchybar.enable { - NSGlobalDomain = { - _HIHideMenuBar = true; - AppleMenuBarVisibleInFullscreen = false; - }; - }) ]; # Install aerospace package and optional tools if enabled @@ -187,6 +178,7 @@ in # Enable and configure aerospace programs.aerospace.enable = true; + programs.aerospace.launchd.enable = cfg.launchd.enable; programs.aerospace.userSettings = mkMerge [ # Default configuration with leader key substitution { @@ -315,18 +307,6 @@ in cfg.userSettings ]; - # Launchd agent for auto-starting aerospace - launchd.agents.aerospace = mkIf cfg.launchd.enable { - enable = true; - config = { - Program = "${pkgs.aerospace}/Applications/AeroSpace.app/Contents/MacOS/AeroSpace"; - RunAtLoad = true; - KeepAlive = true; - StandardOutPath = "/tmp/aerospace.log"; - StandardErrorPath = "/tmp/aerospace.err.log"; - }; - }; - # Launchd agent for autoraise launchd.agents.autoraise = mkIf cfg.autoraise.enable { enable = true;