From fead388d05f14102d9f4ea31ae2842d86d5c4315 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 20 Nov 2023 17:24:06 +0530 Subject: [PATCH] clone and checkout dotfiles --- includes/post/user-setup.ksi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/post/user-setup.ksi b/includes/post/user-setup.ksi index 18c66af..3b96a64 100644 --- a/includes/post/user-setup.ksi +++ b/includes/post/user-setup.ksi @@ -23,6 +23,11 @@ USER_GROUPS='mock,wheel' echo -e "${USER_PASSWORD}\n${USER_PASSWORD}" | passwd "${USER_NAME}" sed -i "s/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/" /etc/sudoers +# dotfiles +sudo -i -u "${USER_NAME}" git clone --bare https://gitlab.com/thefossguy/dotfiles.git "/home/${USER_NAME}/.dotfiles" +sudo -i -u "${USER_NAME}" git --git-dir="/home/${USER_NAME}/.dotfiles" --work-tree="/home/${USER_NAME}" checkout -f +rm -rf "/home/${USER_NAME}/.config/nvim" + # Lock the root account passwd -l root