Skip to content

WSL Alpine #27

Description

@OhMyMndy
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' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions