Install doom/vim configs on activation

This commit is contained in:
Henrik Lissner 2020-01-12 20:42:33 -05:00
parent d238824032
commit a3fa93317d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 0 deletions

View file

@ -26,6 +26,15 @@
env.PATH = [ "$HOME/.emacs.d/bin" ];
zsh.rc = lib.readFile <my/config/emacs/aliases.zsh>;
setup = ''
if [ ! -d "$HOME/.emacs.d" ]; then
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs "$HOME/.emacs.d"
fi
if [ ! -d "$XDG_CONFIG_HOME/doom" ]; then
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs-private "$XDG_CONFIG_HOME/doom"
fi
$HOME/.emacs.d/bin/doom sync
'';
};
fonts.fonts = [

View file

@ -8,7 +8,14 @@
editorconfig-core-c
neovim
];
env.EDITOR = "nvim";
env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
setup = ''
if [ ! -d "$XDG_CONFIG_HOME/nvim" ]; then
${pkgs.git}/bin/git clone https://github.com/hlissner/.vim "$XDG_CONFIG_HOME/nvim"
fi
${pkgs.gnumake}/bin/make -C "$XDG_CONFIG_HOME/nvim" update
'';
};
}