From b344cf066d96b234dab385075c7dc6926b5a79e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Sun, 27 Sep 2020 23:03:44 +0200 Subject: [PATCH] load `config.el` from outside of nix store That way a rebuild is not needed to pick up modifications from it --- default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 58fd73a..2faa99a 100644 --- a/default.nix +++ b/default.nix @@ -192,7 +192,11 @@ let mkdir -p $out cp -r ${doomPrivateDir}/* $out chmod u+w $out/config.el - cat $extraConfigPath >> $out/config.el + cat $extraConfigPath > $out/config.extra.el + cat > $out/config.el << EOF + (load "${builtins.toString doomPrivateDir}/config.el") + (load "$out/config.extra.el") + EOF ''; # Stage 5: catch-all wrapper capable to run doom-emacs even