Skip to content

[20.09-1c1f5649] Back from the Dead!

Compare
Choose a tag to compare
@nzbr nzbr released this 25 Mar 01:01
· 476 commits to main since this release
f697e40

This release addresses a lot of the problems, that people encountered since the previous one. To get it out as fast as possible, it is still based on NixOS 20.09. Expect a 21.11 release in the near future.

If you are importing this as a fresh distro, please make sure to use nixos-wsl-installer.tar.gz instead of the other tarball, as importing it would fail with an "Unspecified Error".

Updating

If you already have an installation and want to update it, remove the WSL-Specific parts from your configuration and instead add the following:

  imports = [ # If you already have imports you'll have to combine the two arrays
    (import (builtins.fetchGit { url = "https://github.com/nix-community/NixOS-WSL.git"; ref = "refs/tags/20.09-1c1f5649"; })).nixosModules.wsl
  ];

  wsl = {
    enable = true;
    automountPath = "/mnt";
    defaultUser = "nixos"; # Replace this with your username
    startMenuLaunchers = true;
  };

If you are using flakes, add this repo as an input to your flake and replace the import in the above code snippet with

    inputs.nixos-wsl.nixosModules.wsl

After that run nixos-rebuild switch and you should be up and running.

Should you encounter any problems, feel free to open an issue in this repo!

Changelog

🛠️ General Changes

🚀 Features

  • Yet another environment pass-through PR (#45) @ajgrf
  • Add support for WSLg (#39) @nzbr
  • Avoid having to run nix activate on first run (#26) @TeofilC
  • Set locale when running nix activate (#25) @TeofilC

🪲 Bugfixes

📖 Documentation