nixos-config/home/alex/programs/emacs/default.nix

26 lines
473 B
Nix

{ 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;
};
}