Fix syncing doom when activating a new version
This commit is contained in:
12
home.nix
12
home.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user