[Nix-dev] Problem with grub

maggesi at math.unifi.it maggesi at math.unifi.it
Mon May 9 19:38:53 CEST 2011


Quoting Michael Raskin <7c6f434c at mail.ru>:

>>> 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.





More information about the nix-dev mailing list