nix/home/scripts.nix

19 lines
587 B
Nix
Raw Normal View History

2022-05-14 02:01:25 +00:00
{
lib,
pkgs,
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"] ''
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
'';
removeLocalFonts = lib.hm.dag.entryAfter ["writeBoundary"] ''
unlink ${config.home.homeDirectory}/.local/share/fonts
'';
2022-05-12 22:16:32 +00:00
};
}