mba: launch colima at startup
Alan Pearce alan@alanpearce.eu
Thu, 24 Aug 2023 05:53:51 +0200
1 files changed, 16 insertions(+), 1 deletions(-)
jump to
M user/mba.nix → user/mba.nix
@@ -1,4 +1,4 @@-{ ... }: { +{ pkgs, ... }: { imports = [ ./settings/base.nix ./settings/development/base.nix @@ -17,4 +17,19 @@ home.username = "alan"; home.homeDirectory = "/home/alan"; home.stateVersion = "22.11"; + + launchd.agents.colima = { + enable = true; + config = { + ProgramArguments = [ "${pkgs.colima}/bin/colima" "start" ]; + RunAtLoad = true; + # It doesn't run in the foreground, yet... + # KeepAlive = true; + WorkingDirectory = "/Users/alan"; + StandardOutPath = "/Users/alan/Library/Logs/colima.log"; + StandardErrorPath = "/Users/alan/Library/Logs/colima.log"; + EnvironmentVariables.HOME = "/Users/alan"; + }; + }; + }