On a nixos installation how does one boot into single user mode?
On a typical linux installation one would set rw init=/sysroot/bin/sh
on the bootloader. But nixos being nixos, it has a path that looks like init=/nix/store/[LONG-HASH]-nixos-system-nixos-18.09.228.80754f5cfd6/init
What is the correct path to /bin/sh
? Or is there a better way to boot to single user mode on nixos for the purpose of resetting the root password?
e
with systemd-boot to edit the kernel command line: https://nixos.org/nixos/manual/#sec-boot-problems – Emmanuel Rosa Mar 03 '19 at 05:37