From 05b44342c41f268ba116e4b45f6a1fb2a6713b36 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 2 Mar 2026 14:30:55 +0000 Subject: [PATCH] tahani: add systemd timer for opencode inbox-triage every 10 minutes --- hosts/tahani/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/tahani/default.nix b/hosts/tahani/default.nix index 05eefe8..604a341 100644 --- a/hosts/tahani/default.nix +++ b/hosts/tahani/default.nix @@ -52,6 +52,29 @@ ]; programs.git.settings.user.email = "christoph@schmatzler.com"; + + systemd.user.services.opencode-inbox-triage = { + Unit = { + Description = "OpenCode inbox triage"; + }; + Service = { + Type = "oneshot"; + ExecStart = "${inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode}/bin/opencode run --command inbox-triage"; + }; + }; + + systemd.user.timers.opencode-inbox-triage = { + Unit = { + Description = "Run OpenCode inbox triage every 10 minutes"; + }; + Timer = { + OnCalendar = "*:0/10"; + Persistent = true; + }; + Install = { + WantedBy = ["timers.target"]; + }; + }; }; virtualisation.docker.enable = true;