diff options
author | Alan Pearce | 2023-08-24 05:53:51 +0200 |
---|---|---|
committer | Alan Pearce | 2023-08-24 05:53:51 +0200 |
commit | b18616fb8a7c05c6cc90fa034fafec1843b3abcc (patch) | |
tree | 63dafd4fc0db9f8b424e07c1985d94a549de44c5 | |
parent | 08203f26d9bf5c330cfdd7716fe10b511666d7bc (diff) | |
download | nixfiles-b18616fb8a7c05c6cc90fa034fafec1843b3abcc.tar.lz nixfiles-b18616fb8a7c05c6cc90fa034fafec1843b3abcc.tar.zst nixfiles-b18616fb8a7c05c6cc90fa034fafec1843b3abcc.zip |
mba: launch colima at startup
-rw-r--r-- | user/mba.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/user/mba.nix b/user/mba.nix index 2ca88fba..5da3eb9e 100644 --- a/user/mba.nix +++ b/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"; + }; + }; + } |