nix/home/scripts.nix
2022-05-13 22:01:25 -04:00

14 lines
372 B
Nix

{
lib,
pkgs,
...
}: {
home.activation = {
cloneDoom = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -d "$XDG_CONFIG_HOME/emacs" ]; then
$DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 --single-branch "https://github.com/doomemacs/doomemacs" "$XDG_CONFIG_HOME/emacs"
$DRY_RUN_CMD ~/.config/emacs/bin/doom sync
fi
'';
};
}