home: Extract emacs related config to module

This commit is contained in:
Alexander Kobjolke 2024-02-03 22:10:45 +01:00
parent e9b9a996e8
commit 16fcc510f6
10 changed files with 651 additions and 21 deletions

View file

@ -0,0 +1,26 @@
{ inputs, config, lib, pkgs, ... }:
{
nixpkgs.overlays = [ inputs.emacs.overlay ];
home = {
sessionPath = [ "$HOME/.emacs.d/bin" ];
shellAliases = { e = "emacsclient -c $@"; };
};
programs.emacs = {
enable = true;
extraPackages = epkgs: with epkgs; [ vterm ];
};
services.emacs = {
enable = true;
defaultEditor = true;
startWithUserSession = true;
};
xdg.configFile.doom = {
target = "doom";
source = ./doom;
};
}