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