My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

macmini: fix AltServer launch — use launchd agent, not system.loginItems

system.loginItems doesn't exist in nix-darwin. AltServer is also an
LSUIElement menu bar app which macOS intentionally hides from Spotlight
by design. Use a launchd user agent with RunAtLoad instead so it
auto-starts at login.

+9 -5
+9 -5
hosts/macmini/default.nix
··· 30 30 myConfig.darwin.externalDisk.timeMachineVolumeUUID = "9217DB34-722B-4596-8ADD-20C8060FC257"; 31 31 32 32 # AltServer is a menu bar app (LSUIElement = true) so macOS intentionally 33 - # hides it from Spotlight. Register it as a login item instead so it 34 - # launches automatically at login without needing Spotlight. 35 - system.loginItems = [ 36 - { path = "/Applications/AltServer.app"; } 37 - ]; 33 + # hides it from Spotlight — this is by design and cannot be changed. 34 + # Launch it automatically at login via a launchd user agent instead. 35 + launchd.user.agents.AltServer = { 36 + serviceConfig = { 37 + Label = "com.rileytestut.AltServer"; 38 + ProgramArguments = [ "/usr/bin/open" "-a" "/Applications/AltServer.app" ]; 39 + RunAtLoad = true; 40 + }; 41 + }; 38 42 39 43 # Timezone — driven from myConfig.timeZone 40 44 time.timeZone = cfg.timeZone;