Quoting Michael Raskin <[email protected]>:

Technically, you can boot, mount, chroot and use /nix/var/nix/profiles/system/
if you prefer.

I tried this also but nixos-rebuild and related commands do not work.
This is what I did:

mount /mnt -L nixos
chroot /mnt /bin/sh
source /etc/bashrc
export PATH=$PATH:/nix/var/nix/profiles/system/
mount /proc
nix-env -p /nix/var/nix/profiles/system --list-generations
[... works ...]
nixos-rebuild boot
[...]
cannot connect to daemon at `/nix/var/nix/daemon-socket/socket`

export NIX_REMOTE=

I tried this but it I get the same error.
However, it is enough to run 'switch-to-configuration boot'.
Now everything works.

Thank you very much for your help!

Marco


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to