nixpkgs/nixos/modules
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
..
config Merge master into staging-next 2020-04-03 21:54:40 +02:00
hardware treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
i18n/input-method nixos/ibus: fix evaluation 2020-04-05 02:23:38 +02:00
installer nixos/build-vms: propagate file location 2020-04-13 17:50:13 +02:00
misc treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
profiles Revert "nixos/hardened: build sandbox incompatible with namespaces" 2020-04-05 17:38:15 +02:00
programs Merge pull request #84599 from doronbehar/nodejs-python3 2020-04-13 07:44:05 -05:00
security acme: create certificates in subdirectory 2020-04-09 08:26:07 +01:00
services Merge pull request #85092 from mayflower/prometheus-local-config-gen 2020-04-13 11:03:16 +02:00
system Merge pull request #81848 from grahamc/nested-specialisation 2020-04-12 08:56:11 -04:00
tasks treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
testing nixos/service-runner.nix: Allow quotes in commands + test 2020-02-28 14:26:29 +01:00
virtualisation nixos/treewide: Fix incorrectly rendered examples 2020-04-02 07:49:25 +02:00
module-list.nix nixos/pixiecore: init (#83406) 2020-04-02 13:06:21 +01:00
rename.nix nixos: fix module paths in rename.nix 2020-03-11 15:59:22 +01:00