emacs update cache complete

This commit is contained in:
2025-04-11 20:03:14 -06:00
parent 41ad6a2c6d
commit 3b58498192
3 changed files with 46 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ./base.nix ];
config.my.scripts.update-org-agenda-cache = {
enable = lib.mkDefault false;
install = config.my.emacs.enable;
service = config.my.emacs.enable;
name = "update-org-agenda-cache";
timer = "*:0/30";
description = "runs a function which builds a cache file.";
package = pkgs.writeScriptBin "update-org-agenda-cache" ''
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p bash
${config.services.emacs.package}/bin/emacsclient --eval '(my/update-org-agenda-cache)'
'';
};
}