From 37c1c7a8415cea6207014cc53ecb20de84dae6cc Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Tue, 9 Apr 2024 11:31:07 +0200 Subject: [PATCH] Improve/fix installDoomEmacs activation script --- modules/home/emacs/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/home/emacs/default.nix b/modules/home/emacs/default.nix index 2c20a34..a2281f9 100644 --- a/modules/home/emacs/default.nix +++ b/modules/home/emacs/default.nix @@ -60,15 +60,13 @@ in { emacs-all-the-icons-fonts ]; - home.activation = { - installDoomEmacs = '' - if [ ! -d "~/.config/emacs" ]; then - ${pkgs.git}/bin/git clone --depth=1 --single-branch "${doomRepoUrl}" "~/.config/emacs" + home.activation.installDoomEmacs = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] '' + if [ ! -d "/home/julian/.config/emacs" ]; then + $DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 --single-branch "${doomRepoUrl}" "/home/julian/.config/emacs" fi - if [ ! -d "~/.config/doom" ]; then - ${pkgs.git}/bin/git clone "${configRepoUrl}" "~/.config/doom" + if [ ! -d "/home/julian/.config/doom" ]; then + $DRY_RUN_CMD ${pkgs.git}/bin/git clone "${configRepoUrl}" "/home/julian/.config/doom" fi ''; }; - }; }