Improve/fix installDoomEmacs activation script
This commit is contained in:
parent
c8861a613b
commit
37c1c7a841
@ -60,15 +60,13 @@ in {
|
|||||||
emacs-all-the-icons-fonts
|
emacs-all-the-icons-fonts
|
||||||
];
|
];
|
||||||
|
|
||||||
home.activation = {
|
home.activation.installDoomEmacs = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
installDoomEmacs = ''
|
if [ ! -d "/home/julian/.config/emacs" ]; then
|
||||||
if [ ! -d "~/.config/emacs" ]; then
|
$DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 --single-branch "${doomRepoUrl}" "/home/julian/.config/emacs"
|
||||||
${pkgs.git}/bin/git clone --depth=1 --single-branch "${doomRepoUrl}" "~/.config/emacs"
|
|
||||||
fi
|
fi
|
||||||
if [ ! -d "~/.config/doom" ]; then
|
if [ ! -d "/home/julian/.config/doom" ]; then
|
||||||
${pkgs.git}/bin/git clone "${configRepoUrl}" "~/.config/doom"
|
$DRY_RUN_CMD ${pkgs.git}/bin/git clone "${configRepoUrl}" "/home/julian/.config/doom"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user