pinwheel: Add dagbok Emacs client
Built from the dagbok flake's Emacs overlay, reading the shared token from agenix.
This commit is contained in:
2 files changed
+21
No files matched your search
@@ -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
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user