14 lines
372 B
Nix
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
|
|
'';
|
|
};
|
|
}
|