From b559f9df8c6e301ff1565b8470418ed187f09e92 Mon Sep 17 00:00:00 2001 From: Xe Date: Wed, 22 Dec 2021 12:38:38 -0500 Subject: [PATCH] home-manager spacemacs activation script Signed-off-by: Xe --- common/users/cadey/spacemacs/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/users/cadey/spacemacs/default.nix b/common/users/cadey/spacemacs/default.nix index 81e3dd9..aee4f70 100644 --- a/common/users/cadey/spacemacs/default.nix +++ b/common/users/cadey/spacemacs/default.nix @@ -30,4 +30,11 @@ in ''; executable = true; }; + + home.activation.spacemacs = '' + if [ ! -d "$HOME/.emacs.d" ]; then + git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d + systemctl --user restart emacs + fi + ''; }