all repos — nixfiles @ b18616fb8a7c05c6cc90fa034fafec1843b3abcc

System and user configuration, managed by nix and home-manager

mba: launch colima at startup
Alan Pearce alan@alanpearce.eu
Thu, 24 Aug 2023 05:53:51 +0200
commit

b18616fb8a7c05c6cc90fa034fafec1843b3abcc

parent

08203f26d9bf5c330cfdd7716fe10b511666d7bc

1 files changed, 16 insertions(+), 1 deletions(-)

jump to
M user/mba.nixuser/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";
+    };
+  };
+
 }