NixOS on WSL updates

This commit is contained in:
Greg Hellings
2022-12-24 00:36:36 -06:00
parent 75b1f637a0
commit 50238c7fba
9 changed files with 124 additions and 87 deletions
+3
View File
@@ -7,6 +7,9 @@ if [ "$(uname -s)" == "Darwin" ]; then
# On macOS
src="${HOME}/.config/nix/"
target="${arch}-darwin"
elif [ x"${WSL_DISTRO_NAME}" != "x" ]; then
src=/etc/nixos
target="wsl"
else
# On Linux/WSL2 systems
if [ -z "${DISPLAY}" ]; then