Skip to content

knowit-solutions-cocreate/NixOS-WSL

Repository files navigation

NixOS-WSL
Matrix Chat Downloads

Modules for running NixOS on the Windows Subsystem for Linux

Documentation is available here

Quick Start

Run the following from powershell:

  1. Enable WSL if you haven't done already:
  • wsl --install --no-distribution
  1. Download nixos.wsl from the latest release.

  2. Double-click the file you just downloaded (requires WSL >= 2.4.4)

  3. You can now run NixOS:

  • wsl -d NixOS

First time use

  1. Update the packages (similar to apt update)
sudo nix-channel --update
  1. Boostrap the current config (found in /etc/nixos/configuration.nix)
sudo nixos-rebuild switch

For more detailed instructions, refer to the documentation.

Developing this WSL For Cocreate

To change the default config please edit modules/build-tarball.nix

build the wsl locally using

sudo nix run .#nixosConfigurations.default.config.system.build.tarballBuilder

then the resulting nixos.wsl can be imported as shown above.

License

Apache License, Version 2.0. See LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html for details.

About

Bootstrap for NixOS on WSL

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors