Compare commits
7 Commits
90029b9a27
...
35eda93886
| Author | SHA1 | Date | |
|---|---|---|---|
| 35eda93886 | |||
| 8044ade9c6 | |||
| 91b0e90a19 | |||
| 68db6f15b8 | |||
| e67b84aa99 | |||
| 05b44342c4 | |||
| bfc10a890d |
@@ -1,10 +1,14 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
user,
|
||||
hostname,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
himalaya = config.home-manager.users.${user}.programs.himalaya.package;
|
||||
opencode = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
|
||||
in {
|
||||
imports = [
|
||||
./adguardhome.nix
|
||||
./cache.nix
|
||||
@@ -52,6 +56,30 @@
|
||||
];
|
||||
|
||||
programs.git.settings.user.email = "christoph@schmatzler.com";
|
||||
|
||||
systemd.user.services.opencode-inbox-triage = {
|
||||
Unit = {
|
||||
Description = "OpenCode inbox triage";
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${opencode}/bin/opencode run --command inbox-triage";
|
||||
Environment = "PATH=${himalaya}/bin:${opencode}/bin:${pkgs.coreutils}/bin";
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package =
|
||||
pkgs.writeShellApplication {
|
||||
name = "himalaya";
|
||||
runtimeInputs = [pkgs.himalaya];
|
||||
runtimeInputs = [pkgs.bash pkgs.coreutils pkgs.himalaya];
|
||||
text = ''
|
||||
exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@"
|
||||
'';
|
||||
|
||||
@@ -35,7 +35,7 @@ Workflow:
|
||||
- Read the message: `himalaya message read -f "<source>" <id>`.
|
||||
- If needed for classification, inspect attachments: `himalaya attachment download -f "<source>" <id> --dir /tmp/himalaya-triage`.
|
||||
- If attachments are downloaded, inspect them and `rm` the downloaded files from `/tmp/himalaya-triage` after use.
|
||||
- Move: `himalaya message move -f "<source>" <id> "<destination>"`.
|
||||
- Move: `himalaya message move -f "<source>" "<destination>" <id>`.
|
||||
- Delete: `himalaya message delete -f "<source>" <id>`.
|
||||
6. Classification precedence (higher rule wins on conflict):
|
||||
- Human communication — a message with freeform natural-language content written by a human, not templated or autogenerated. When in doubt whether a message is human or automated, leave it untouched.
|
||||
|
||||
Reference in New Issue
Block a user