Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WSL Alpine #27

Open
OhMyMndy opened this issue Sep 26, 2023 · 0 comments
Open

WSL Alpine #27

OhMyMndy opened this issue Sep 26, 2023 · 0 comments

Comments

@OhMyMndy
Copy link
Owner

wsl -d Alpine -u root ash -c "apk add --no-cache sudo"
wsl -d Alpine -u root ash -c "echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel"
wsl -d Alpine -u root ash -c "adduser `$(cat /etc/passwd | cut -d: -f1 | tail -1) wheel"

# set password for user
wsl -d Alpine -u root ash -c "passwd `$(cat /etc/passwd | cut -d: -f1 | tail -1)"

wsl -d Alpine -u root ash -c "apk add --no-cache curl xz"
wsl -d Alpine ash -c "curl -L https://nixos.org/nix/install | sh"

wsl -d Alpine -u root ash -c "chown -R mschoep /nix"

wsl -d Alpine ash -c  'echo "". /home/\$USER/.nix-profile/etc/profile.d/nix.sh"" >> ~/.profile' 
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant