[Nix-dev] undefined variable 'config', in '/etc/nixos/configuration.nix'
Lluís Batlle i Rossell
viriketo at gmail.com
Wed Jul 7 18:42:38 CEST 2010
On Wed, Jul 07, 2010 at 10:03:36AM -0600, Bryan Murdock wrote:
> I'm using nixos-0.1pre22440-i686-linux.iso to install nix as a
> VirtualBox guest. At the step where I run nixos-install it exits
> early with this output:
>
> building the system configuration...
> error: undefined variable 'config', in '/etc/nixos/configuration.nix'
>
> The file /etc/nixos/configuration.nix is this:
You should look at /mnt/etc/nixos/configuration.nix
/etc/nixos/configuration.nix defines the nixos configuration of the system in
the CD.
/mnt/etc/nixos/configuration.nix defines the system you want in your hard disk
(mounted at /mnt)
nixos-install uses some 'chroot /mnt ...' operations, so you may get messages
telling about /etc/nixos/configuration.nix, but you should understand that they
refer to /mnt. As you install a nixos (nixos-install), and not rebuild the CD
nixos (nixos-rebuild), I'm quite sure your trouble refers to
/mnt/etc/nixos/configuration.nix.
Regards,
Lluís
More information about the nix-dev
mailing list