From 56e11254ac59eeec2c9c3becc9fc22c80ede2a92 Mon Sep 17 00:00:00 2001 From: Xe Date: Wed, 22 Dec 2021 12:40:59 -0500 Subject: [PATCH] github host key Signed-off-by: Xe --- common/users/cadey/spacemacs/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/users/cadey/spacemacs/default.nix b/common/users/cadey/spacemacs/default.nix index aee4f70..596eabb 100644 --- a/common/users/cadey/spacemacs/default.nix +++ b/common/users/cadey/spacemacs/default.nix @@ -32,8 +32,15 @@ in }; home.activation.spacemacs = '' + mkdir -p ~/.ssh + + if ! grep github.com ~/.ssh/known_hosts > /dev/null + then + echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> ~/.ssh/known_hosts + fi + if [ ! -d "$HOME/.emacs.d" ]; then - git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d + GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d systemctl --user restart emacs fi '';