1

only link doom config if doom enabled

This commit is contained in:
2022-07-03 22:26:23 +02:00
parent ddd7cce61d
commit e202f78745
2 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,9 @@ rec {
emacs.useDoom = true;
};
# TODO: Gtk
# TODO: Email
# TODO: Run noisetorch as login script
# TODO: Gnome terminal
# Disabled since HomeManager should use global pkgs
# https://github.com/nix-community/home-manager/issues/2942

View File

@ -57,6 +57,8 @@ in {
# TODO: Use LaTeX module instead
texlive.combined.scheme-medium
emacs-all-the-icons-fonts
# TODO: Should I list lsps etc here or inside shell.nix for specific projects?
];
# Do this in packages
@ -65,7 +67,8 @@ in {
# enable = true;
# };
home.sessionPath = [ "/home/${config.home.username}/.emacs.d/bin" ];
home.sessionPath =
mkIf cfg.useDoom [ "/home/${config.home.username}/.emacs.d/bin" ];
# We tell HomeManager where the config files belong
# home.file.".config/doom" = {
@ -77,6 +80,7 @@ in {
# If doom is enabled we want to clone the framework
# The activation script is being run when home-manager rebuilds
home.activation = mkIf cfg.useDoom {
# Because we write to the filesystem, this script has to be run after HomeManager's writeBoundary
installDoomEmacs = hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -d "${config.home.homeDirectory}/.emacs.d" ]; then