Commit Graph
2 Commits
Author SHA1 Message Date
marc f5ffea6d64 Added diwan to thingvellir 2026-11-09 19:28:24 +01:00
marc 83e6c8c140 add diwan module: packages + scheduled tick via systemd timer
New modules/ai/diwan.nix: pulls in the diwan flake's package, requires
ai.pi and ai.herdr (diwan's real runtime dependencies, not optional
extras), and exposes notesDir (DIWAN_NOTES_DIR, required) / cadence
(systemd OnCalendar, default hourly) / user (default the host's primary
user) as options, wiring a systemd.timer + oneshot systemd.service that
runs 'diwan tick'.

diwan.url is a temporary path: input (see the flake.nix TODO) -- switch
to a real git remote before deploying to any host that isn't this one.

Verified via nix eval against an extended thingvellir config: pi/herdr
get force-enabled, cadence flows through to OnCalendar, notesDir flows
through to the service environment and WorkingDirectory, ExecStart
resolves to the real built diwan package.
2026-11-09 11:24:43 +01:00