nixpkgs/nixos/modules/installer
Maximilian Bosch ec6bac99cc
nixos/build-vms: propagate file location
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)
```
2020-04-13 17:50:13 +02:00
..
cd-dvd treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
netboot Revert "Revert "Merge master into staging-next"" 2020-02-05 19:41:25 +01:00
scan [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
tools nixos/build-vms: propagate file location 2020-04-13 17:50:13 +02:00
virtualbox-demo.nix ova: remove stateVersion 2019-03-09 14:25:05 -05:00