home: Extract emacs related config to module
This commit is contained in:
parent
e9b9a996e8
commit
16fcc510f6
10 changed files with 651 additions and 21 deletions
26
home/alex/programs/emacs/default.nix
Normal file
26
home/alex/programs/emacs/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue