I installed NixOS 21.05 from USB on a spare machine, following the instructions in the manual. The install boots fine but, despite having set a root password at the prompt from ‘nixos-install’, I cannot log in: the login screen says ‘Failed to start session’. I have also attempted to log in via ssh from another machine but this also fails: “Received disconnect from 192.168.0.28 port 22:2: Too many authentication failures”.
Many thanks for the response. Unfortunately it does not work for me:
preallocating file of 56671331 bytes: No space left on device
copying path ‘/nix/store/lc4nyfgnkz1x2mw6ir6fgfyjr0p7dc3s-cairo-1.16.0’ from ‘https://cache.nixos.org’…
copying path ‘/nix/store/6x2qh9r1cq5gxsm9xsnyc094w6s8lp0w-poppler-data-0.4.10’ from ‘https://cache.nixos.org’…
cannot build derivation ‘/nix/store/45xd95b351kkcyf3kjhb2pvfz3pgc2y7-system-path.drv’: 1 dependencies couldn’t be built
building ‘/nix/store/3mi7y2qki571y08mzcdaqjdklbrw55f5-unit-40-enp0s25.link.drv’…
cannot build derivation ‘/nix/store/c7gwxhfh8l6j1g543r44qzsji6iypnhm-nixos-system-nixos-21.05.1669.973910f5c31.drv’: 1 dependencies couldn’t be built
error: build of ‘/nix/store/c7gwxhfh8l6j1g543r44qzsji6iypnhm-nixos-system-nixos-21.05.1669.973910f5c31.drv’ failed
Exception:
CommandFailure
“nix-build ‘<nixpkgs/nixos>’ -A config.system.build.toplevel -I nixos-config=/mnt/etc/nixos/configuration.nix”.
Called from Stdlib__fun.protect in file “fun.ml”, line 33, characters 8-15
Re-raised at Stdlib__fun.protect in file “fun.ml”, line 38, characters 6-52
Called from Toploop.load_lambda in file “toplevel/toploop.ml”, line 212, characters 4-150
I’m installing on a system with a 160GB HD and it looks like something is hardwired to consume more space than is available. I’ll also need swap b/c the machine has only 4GB of RAM, but the script allocates the whole disk.
copying path ‘/nix/store/q9p6pddakbaqyqyq3l5ajywsmzvkvi80-cantarell-fonts-0.301’ from ‘https://cache.nixos.org’…
getting attributes of path ‘/nix/store/q9p6pddakbaqyqyq3l5ajywsmzvkvi80-cantarell-fonts-0.301’: No such file or directory
cannot build derivation ‘/nix/store/mx1i8cwpwzjhlnjhkg80a6yc3c6zvil9-fontconfig-etc.drv’: 1 dependencies couldn’t be built
cannot build derivation ‘/nix/store/hpnr8i1wxm1l03x3d0ixsisdpr4p4zdd-etc.drv’: 1 dependencies couldn’t be built
copying path ‘/nix/store/h1hswzxsnsmbr6qf1j1fqxhx0x9nl4jk-cheese-3.38.0-man’ from ‘https://cache.nixos.org’…
cannot build derivation ‘/nix/store/v4p8dicrjpd97r133wjiaw8pzz29cqg0-nixos-system-diopside-21.05.1669.973910f5c31.drv’: 1 dependencies couldn’t be built
error: build of ‘/nix/store/v4p8dicrjpd97r133wjiaw8pzz29cqg0-nixos-system-diopside-21.05.1669.973910f5c31.drv’ failed