Initial attempt at configuring use-package with nix

This commit is contained in:
Joe Frikker
2026-09-17 14:06:42 -04:00
parent 5bda0b3ad6
commit 28e58c72de
3 changed files with 36 additions and 11 deletions
+7 -10
View File
@@ -885,6 +885,7 @@ helps with a few places where nix's string interpolation was causing problems.
(mkIf cfg.desktop.enable {
programs.emacs = {
enable = true;
init.enable = true;
extraConfig = builtins.readFile ./emacs.el;
};
})
@@ -2281,20 +2282,16 @@ And finally, we want to hide the cursor when presenting.
** Terminal
#+BEGIN_SRC nix
{
programs.emacs = {
extraPackages = epkgs: with epkgs; [
eat
];
programs.emacs.init.usePackage = {
eat = {
enable = true;
command = ["eat"];
hook = ["(eshell-load . eat-eshell-mode)"];
};
};
}
#+END_SRC
#+BEGIN_SRC elisp
(use-package eat
:commands (eat)
:hook (eshell-load . eat-eshell-mode))
#+END_SRC
** Ledger
#+BEGIN_SRC nix
{