conf: doom-emacs dynamically
This commit is contained in:
parent
041b37d7a7
commit
7a13376d09
1 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
|
@ -6,8 +6,17 @@
|
||||||
package = pkgs.emacs;
|
package = pkgs.emacs;
|
||||||
};
|
};
|
||||||
|
|
||||||
# environment.variables = {
|
home.activation = {
|
||||||
# # Point Emacs to the source controlled configuration files.
|
cloneDoomEmacs = ''
|
||||||
# EMACSLOADPATH = builtins.getEnv "HOME" + "/.dotfiles/home-manager/packages/doom-emacs";
|
if [ ! -d "$HOME/.emacs.d" ]; then
|
||||||
# };
|
${pkgs.git}/bin/git clone https://github.com/doomemacs/doomemacs $HOME/.emacs.d
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".doom.d" = {
|
||||||
|
source = ./doom-emacs/.doom.d;
|
||||||
|
recursive = true;
|
||||||
|
onChange = builtins.getEnv "HOME" + "/.emacs.d/bin/doom sync";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue