diff --git a/darwin/shiro/services/colima.nix b/darwin/shiro/services/colima.nix new file mode 100644 index 00000000..f95dc65e --- /dev/null +++ b/darwin/shiro/services/colima.nix @@ -0,0 +1,26 @@ +{ + pkgs, + device, + config, + ... +}: { + launchd.agents.colima = { + enable = true; + config = { + # A label for the service + Label = "com.abiosoft.colima"; + # The command to run + ProgramArguments = [ + "${pkgs.colima}/bin/colima" + "start" + ]; + # Run the service when you log in + RunAtLoad = true; + # Keep the process alive, or restart if it dies + KeepAlive = false; + # Log files + StandardOutPath = "${config.home.homeDirectory}/Library/Logs/colima.log"; + StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/colima.error.log"; + }; + }; +} diff --git a/darwin/shiro/services/default.nix b/darwin/shiro/services/default.nix index a655a934..ca85d92c 100644 --- a/darwin/shiro/services/default.nix +++ b/darwin/shiro/services/default.nix @@ -4,6 +4,7 @@ ./skhd.nix ./tailscale.nix ./autossh.nix + ./colima.nix # ./homeassistant.nix # ./zerotier.nix # ./jellyfin.nix