feat: doom emacs module, systemd user service, doom config symlinked

This commit is contained in:
2026-03-04 13:43:11 +01:00
parent da95e1d2f8
commit a1007bee22
6 changed files with 306 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
ripgrep
fd
findutils
cmake
nil
lua-language-server
shellcheck
shfmt
];
# Symlink doom config into place
xdg.configFile."doom" = {
source = ../../config/doom;
recursive = true;
};
# Emacs daemon service pointing directly to system Emacs
systemd.user.services.emacs = {
Unit = {
Description = "Emacs daemon";
After = [ "graphical-session.target" ];
};
Service = {
Type = "notify";
ExecStart = "/usr/bin/emacs --fg-daemon";
ExecStop = "/usr/bin/emacsclient --eval '(kill-emacs)'";
Restart = "on-failure";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}