From 368f649973c0cb3c993c6a5cfbf2e7dec41dcb8e Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 20 Jul 2024 17:05:32 -0700 Subject: [PATCH] Fix syncing doom when activating a new version --- home.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home.nix b/home.nix index 60a6a38..484c182 100644 --- a/home.nix +++ b/home.nix @@ -86,15 +86,15 @@ with import {}; rev = "36e7aaa619342eff61b1daf3ac664f94d5272db7"; }; recursive = true; - onChange = "bash -c \"doom sync -u -j $((`nproc`/4*3))\""; }; }; - /*home.activation = { - syncDoom = lib.hm.dag.entryAfter ["writeBoundary"] '' - run bash -c "doom sync -u -j $((`nproc`/4*3))" - ''; - };*/ + home.activation.doomSync = lib.hm.dag.entryAfter [ "writeBoundary" ] (let + emacs = pkgs.emacs; + in '' + export PATH=$PATH:${emacs}/bin + ${config.xdg.configHome}/emacs/bin/doom sync -u -j $((`nproc`/4*3)) + ''); # Home Manager can also manage your environment variables through # 'home.sessionVariables'. These will be explicitly sourced when using a