home: install doom-emacs
This commit is contained in:
parent
f571e44ba0
commit
a5bf98bdd6
5 changed files with 352 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
./1password.nix
|
||||
./obs.nix
|
||||
./irc.nix
|
||||
./emacs.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
32
home/features/desktop/emacs.nix
Normal file
32
home/features/desktop/emacs.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, config, lib, ... }: {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: [ epkgs.vterm ];
|
||||
};
|
||||
|
||||
home = {
|
||||
sessionPath = [ "${config.xdg.configHome}/emacs/bin" ];
|
||||
sessionVariables = {
|
||||
DOOMDIR = "${config.xdg.configHome}/doom";
|
||||
DOOMLOCALDIR = "${config.xdg.dataHome}/doom";
|
||||
EMACSDIR = "${config.xdg.configHome}/emacs";
|
||||
DOOMPROFILELOADFILE = "${config.xdg.configHome}/doom-profiles-load.el";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."doom".source = ../../../doom_files;
|
||||
xdg.configFile."emacs".source = builtins.fetchGit {
|
||||
url = "https://github.com/doomemacs/doomemacs";
|
||||
rev = "c8a5e6ec1ca85a35f94d6c820c2fd8888373c2ae";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# doom emacs dependencies
|
||||
binutils
|
||||
gnutls
|
||||
fd
|
||||
imagemagick
|
||||
zstd
|
||||
editorconfig-core-c
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue