nixos-up icon indicating copy to clipboard operation
nixos-up copied to clipboard

Install fails from Nixos-gnome-21.05 due to home-manager

Open mped-oticon opened this issue 4 years ago • 2 comments

Hi

I follow the readme.md file, running from a live cd inside VirtualBox. This results in the following error: image

If I hack out references to home-manager from the nixos-up python script, then it processed OK.

Why it fails, I don't know how to debug. However it hints at making home-manager optional, as this seems to be the cause. (Perhaps consider not installing home-manager for server-installations)

mped-oticon avatar Dec 02 '21 23:12 mped-oticon

Hmm interesting... Looks to be a dup of https://github.com/samuela/nixos-up/issues/9 which was once resolved in https://github.com/samuela/nixos-up/issues/11. This seemed to have been resolved upstream so I removed the workaround from nixos-up since then. Which ISO are you using exactly? Does it work with 21.11?

As a quick workaround you could run nixos-up and then ctrl-c once it starts the nixes-install --no-root-passwd phase, edit /mnt/etc/nixos/configuration.nix to your liking and then run nixes-install --no-root-passwd manually. That should do the trick until we get a better fix.

samuela avatar Dec 03 '21 00:12 samuela

Also at one point I tried to do a home-manager "standalone" install instead of the NixOS system configuration install (see https://github.com/nix-community/home-manager#installation). This involved running the install commands inside nixos-enter. However I got snagged on this issue with that approach.

samuela avatar Dec 03 '21 00:12 samuela