nixpkgs/nixos
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
..
doc Merge pull request #85085 from Ericson2314/document-haskell-env-changes 2020-04-12 16:33:53 -04:00
lib treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
maintainers nixos/azure: clarify how users work in basic example 2020-03-29 13:56:55 -07:00
modules nixos/build-vms: propagate file location 2020-04-13 17:50:13 +02:00
tests Merge pull request #81848 from grahamc/nested-specialisation 2020-04-12 08:56:11 -04:00
COPYING
default.nix
README
release-combined.nix nixos/release-combined.nix: test hibernate only on x86_64 2020-04-08 14:30:53 +02:00
release-small.nix nixos: try to fix channel eval 2020-04-06 00:25:11 +02:00
release.nix nixos/release.nix: Import './..' instead of nixpkgs 2020-02-12 22:44:59 +01:00

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