Simplify setting straight-base-dir

Instead of passing the path down from the profile loader to init.el,
just substitute the path into init.el.

This requires moving DOOMDIR generation into the same derivation as
profile build to avoid a circular dependency.
This commit is contained in:
Marien Zwart 2024-04-28 17:33:43 +10:00
parent 5049ed0665
commit 603c36e90c
No known key found for this signature in database
3 changed files with 22 additions and 28 deletions

View file

@ -31,7 +31,7 @@ it. Just skip it entirely."
(straight--load-build-cache))
(after! doom-packages
(setq straight-base-dir unstraightened--straight-base-dir))
(setq straight-base-dir "@straight-base-dir@"))
;; TODO: remove if Doom accepts https://github.com/doomemacs/doomemacs/pull/7849
(defadvice! nix-doom-configs-without-git (package)