LnL7 / nix-darwin

nix modules for darwin
MIT License
2.82k stars 431 forks source link

Launch Raycast at Login #902

Closed rmgpinto closed 6 months ago

rmgpinto commented 6 months ago

Is there a way to automate "Launch Raycast at Login"?

I've poked around defaults read but couldn't find anything. I assume this is achieved using either the LaunchDaemons or LaunchAgents functionality of nix-darwin.

Enzime commented 6 months ago
launchd.user.agents.raycast = {
  serviceConfig.ProgramArguments =
    [ "/Applications/Nix Apps/Raycast.app/Contents/MacOS/Raycast" ];
  serviceConfig.RunAtLoad = true;
};

https://github.com/Enzime/dotfiles-nix/blob/ba28c8e0902bbb3e1fc9b4d04cd8b4804e8ddcc4/modules/graphical.nix#L8-L12