tahani: add systemd timer for opencode inbox-triage every 10 minutes

This commit is contained in:
2026-03-02 14:30:55 +00:00
parent bfc10a890d
commit 05b44342c4

View File

@@ -52,6 +52,29 @@
]; ];
programs.git.settings.user.email = "christoph@schmatzler.com"; 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; virtualisation.docker.enable = true;