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:
parent
5049ed0665
commit
603c36e90c
3 changed files with 22 additions and 28 deletions
2
init.el
2
init.el
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue