Skip to content

Commit

Permalink
Configure WSL and DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmuc committed Oct 2, 2022
1 parent a9d77fa commit 68b5b0e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions homedirs/wsl/coalesce_this_machine
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ source "${LIB_DIR}/install_alacritty_colorscheme.bash"
source "${LIB_DIR}/setup_neovim.bash"

main() {
configure_wsl
configure_dns
symlink_all_the_things
install_os_packages
install_gum
Expand All @@ -26,6 +28,26 @@ main() {
setup_neovim
}

configure_wsl() {
cat << EOF | sudo tee /etc/wsl.conf
# generated by wsl/coalesce_this_machine
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config
[network]
hostname = wsl
generateHosts = false
generateResolvConf = false
EOF
}

configure_dns() {
cat << EOF | sudo tee /etc/resolv.conf
# generated by wsl/coalesce_this_machine
nameserver 192.168.2.10
search home.scottmuc.com
EOF
}


install_golang() {
if [[ ! -d /usr/local/go ]]; then
Expand Down

0 comments on commit 68b5b0e

Please sign in to comment.