From d76e9e73f58ba48e1e81eecd75c1e14cd6840c28 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Mon, 1 Sep 2025 10:45:18 -0700 Subject: [PATCH] [doom] Attempt config with symlink I'm not 100% this works yet. But the idea here is to symlink from the config directory into where we are locally storing the doom config. The intention here is to enable `doom sync` to work without requiring a full NixOS rebuild --- home/modules/emacs/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/modules/emacs/default.nix b/home/modules/emacs/default.nix index ac9ae3f..05a4154 100644 --- a/home/modules/emacs/default.nix +++ b/home/modules/emacs/default.nix @@ -42,6 +42,11 @@ in DOOMLOCALDIR = "${config.xdg.dataHome}/doom"; }; - home.file."${config.xdg.configHome}/doom".source = ./doom; + home.activation.doomConfig = lib.hm.dag.entryAfter ["writeBoundary"] '' + if [ ! -L "${config.xdg.configHome}/doom" ]; then + rm -rf "${config.xdg.configHome}/doom" + ln -sf "${./doom}" "${config.xdg.configHome}/doom" + fi + ''; }; }