feat: doom emacs module, systemd user service, doom config symlinked
This commit is contained in:
@@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user