diff --git a/init-void.sh b/init-void.sh index 76fef26..51da0bd 100755 --- a/init-void.sh +++ b/init-void.sh @@ -15,6 +15,9 @@ xbps-reconfigure -fa useradd -m -G wheel -s /bin/bash $USERNAME sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers +xbps-install -y opendoas +bash -c "echo 'permit nopass $USERNAME as root' > /etc/doas.conf" + if [[ "$1" == "--wsl" ]]; then cat < /etc/wsl.conf [user]