From 4deef4b9f77e1fa29d8aa11ba2a7ce21702876bc Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 1 Jul 2022 16:28:38 +0200 Subject: [PATCH] Let HomeManager link doom config --- home/modules/emacs.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/modules/emacs.nix b/home/modules/emacs.nix index a1edafe4..f9d93b4a 100644 --- a/home/modules/emacs.nix +++ b/home/modules/emacs.nix @@ -63,6 +63,16 @@ in { # TODO: # fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ]; + # We tell HomeManager where the config files belong + home.file = { + # With onChange you even could rebuild doom emacs when rebuilding HomeManager but I don't want this to become too slow + + # We let HomeManager link the config + doom-config.recursive = true; # doom-config is a directory + doom-config.source = ../../config/doom; + doom-config.target = ".config/doom"; # Relative to homeDirectory + }; + # 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 {