From 8c7b996411720e6303c82d1a6592ffc77fbd680d Mon Sep 17 00:00:00 2001 From: Spirit Date: Mon, 19 Aug 2024 10:19:41 -0700 Subject: [PATCH] configure `doas` cause sodu sucks or i dont know how to use it idk --- init-void.sh | 3 +++ 1 file changed, 3 insertions(+) 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]