Closed viraptor closed 1 year ago
What nixpkgs are you using? nix-instantiate -I nixpkgs=channel:nixos-unstable --json --eval --expr "with import <nixpkgs> {}; lib.version"
./bin/nixos-shell -I nixpkgs=channel:nixos-unstable ./examples/vm.nix
still works fine here. Try deleting nixos.qcow2
in the same directory. It might be a corruption of your nix user json database. It seems to contain only null bytes.
I was having the same problem. Deleting nixos.qcow2
solved the problem.
When running nixos-shell with
-I nixpkgs=channel:nixos-unstable
to get access to packages not available yet in a release, I get a failure to create users:This results in not being able to log in as root either.