From 40b9f3e86120b914ca75822051bbfc7a3ccd8de8 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 12 Oct 2026 16:28:37 +0200 Subject: [PATCH] pinwheel: Add `dagbok` Emacs client Built from the dagbok flake's Emacs overlay, reading the shared token from agenix. --- hosts/pinwheel/modules/emacs/config.org | 13 +++++++++++++ hosts/pinwheel/modules/emacs/default.nix | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index 363bfb5..bef5b24 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -639,6 +639,19 @@ Setup prefix for keybindings. #+BEGIN_SRC emacs-lisp (use-package markdown-mode) #+END_SRC +** Dagbok +#+BEGIN_SRC emacs-lisp + (use-package dagbok + :commands (dagbok-today dagbok-open-date dagbok-next-day dagbok-previous-day + dagbok-switch-journal dagbok-note dagbok-tasks dagbok-search + dagbok-add-task dagbok-set-status dagbok-toggle-flag + dagbok-toggle-highlight dagbok-reload dagbok-browse) + :custom + (dagbok-url "https://dagbok.ppp.pm") + (dagbok-token-file "/run/agenix/dagbok-token") + :init + (alex/keybindings "d" '(:keymap dagbok-command-map :package dagbok :which-key "dagbok"))) +#+END_SRC ** Javascript #+BEGIN_SRC emacs-lisp (setq diff --git a/hosts/pinwheel/modules/emacs/default.nix b/hosts/pinwheel/modules/emacs/default.nix index 307fcb1..e07f4a7 100644 --- a/hosts/pinwheel/modules/emacs/default.nix +++ b/hosts/pinwheel/modules/emacs/default.nix @@ -8,6 +8,8 @@ let alwaysEnsure = true; alwaysTangle = true; + override = inputs.dagbok.overlays.emacs; + extraEmacsPackages = epkgs: [ epkgs.flymake-go-staticcheck epkgs.tree-sitter-langs @@ -43,4 +45,10 @@ in }; environment.systemPackages = [ pkgs.ripgrep ]; + + age.secrets."dagbok-token" = { + file = ../../../../secrets/manatee/dagbok-token.age; + owner = "alex"; + group = "users"; + }; }