Fix syncing doom when activating a new version

This commit is contained in:
2024-07-20 17:05:32 -07:00
parent bb9c3921d6
commit 368f649973

View File

@@ -86,15 +86,15 @@ with import <nixpkgs> {};
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