nsl is a tool that brings a WSL-style experience to Linux: it provides persistent, full distro "machines" that run as systemd-nspawn containers inside small virtual machines. Each machine can be any supported distribution with its own packages and services, and nsl exposes convenient commands to create a machine, drop into a login shell in the current directory, or run a single command and return its exit status (examples: nsl create debian:distro debian:13, nsl, nsl run make test). Host resources are made available inside machines - $HOME, removable media and /mnt appear under /mnt/host - while the user’s UID/GID and passwordless sudo are preserved. Network services listen on the same localhost ports as the host, Wayland apps can open windows on the host desktop, and an isolated mode spawns a VM with no host access for untrusted workloads. Images are signed and rebuilt weekly.
The project's design argument is to keep the host atomic and unchanged: nsl runs entirely as the user, installs no host packages, and avoids changing device permissions, groups, or sudoers. It supports seven signed distros (Debian, Ubuntu, Fedora, CentOS Stream, Arch, openSUSE Leap and Tumbleweed) and includes documentation on installation, architecture, commands, configuration, images and limits. nsl is MIT-licensed, part of Frostyard, currently pre-release (v0.4.0 first release) and tested against a specific stack (Snow Linux 13, systemd 261.2, QEMU 10.0.13, virtiofsd 1.13.2, GNOME Wayland).
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.