2022-05-14 02:01:25 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2022-07-15 02:17:19 +00:00
|
|
|
config,
|
2022-05-14 02:01:25 +00:00
|
|
|
...
|
|
|
|
}: {
|
2022-05-12 22:16:32 +00:00
|
|
|
home.activation = {
|
|
|
|
cloneDoom = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
2022-07-15 02:17:19 +00:00
|
|
|
if [ ! -d "${config.home.homeDirectory}/.config/emacs" ]; then
|
|
|
|
$DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 --single-branch "https://github.com/doomemacs/doomemacs" "${config.home.homeDirectory}/.config/emacs"
|
|
|
|
$DRY_RUN_CMD ${config.home.homeDirectory}/.config/emacs/bin/doom sync -u
|
2022-05-12 22:16:32 +00:00
|
|
|
fi
|
|
|
|
'';
|
2022-07-24 16:00:12 +00:00
|
|
|
removeLocalFonts = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
|
|
unlink ${config.home.homeDirectory}/.local/share/fonts
|
|
|
|
'';
|
2022-05-12 22:16:32 +00:00
|
|
|
};
|
|
|
|
}
|