Nix Using nix, the functional package manager on the Windows Subsystem for Linux is fairly easy, however a couple of additional steps need to be done.

  1. Enable WSL, see Windows Subsystem for Linux Installation Guide for Windows 10
  2. Pick Ubuntu inside the Microsoft Store
  3. Update Ubuntu
     sudo apt update
     sudo apt upgrade
  4. Create the /etc/nix directory
      mkdir -p /etc/nix
  5. Create & edit /etc/nix/nix.conf, add following items:
     sandbox = false
     use-sqlite-wal = false

    Unfortunately there are still some things that require this workaround:

  6. Install nix:
     curl | sh

You are done, let’s test it:

  nix-shell -p busybox --run 'echo $PATH'

Nix on Windows

Some extra useful links: