forked from mirrors/nixpkgs
ec6bac99cc
When trying to build a VM using `nixos-build-vms` with a configuration that doesn't evaluate, an error "at `<unknown-file>`" is usually shown. This happens since the `build-vms.nix` creates a VM-network of NixOS-configurations that are attr-sets or functions and don't contain any file information. This patch manually adds the `_file`-attribute to tell the module-system which file contained broken configuration: ``` $ cat vm.nix { vm.invalid-option = 1; } $ nixos-build-vms vm.nix error: The option `invalid-option' defined in `/home/ma27/Projects/nixpkgs/vm.nix@node-vm' does not exist. (use '--show-trace' to show detailed location information) ``` |
||
---|---|---|
.. | ||
doc | ||
lib | ||
maintainers | ||
modules | ||
tests | ||
COPYING | ||
default.nix | ||
README | ||
release-combined.nix | ||
release-small.nix | ||
release.nix |
*** NixOS *** NixOS is a Linux distribution based on the purely functional package management system Nix. More information can be found at http://nixos.org/nixos and in the manual in doc/manual.