nixconfig/emacs/emacs.nix
2024-07-09 20:35:03 +02:00

24 lines
533 B
Nix

{ config, lib, pkgs, ...}:
{
home.file.".emacs.d/early-init.el" = {
enable = true;
text = ''
(setq package-enable-at-startup nil)
(setq package-install-upgrade-built-in t)
'';
};
home.file.".emacs.d/init.el" = {
enable = true;
text = builtins.readFile ./init.el;
};
home.file.".emacs.d/templates" = {
enable = true;
text = builtins.readFile ./templates;
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
extraConfig = builtins.readFile ./init.el;
};
}