nixpkgs/nixos/modules/installer/tools
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
..
nixos-build-vms nixos/build-vms: propagate file location 2020-04-13 17:50:13 +02:00
nixos-option nixos/nixos-option: Convert --all into -r 2019-12-19 15:00:43 +01:00
get-version-suffix Revert adding .git-revision unconditionally 2016-08-09 14:15:06 +02:00
nix-fallback-paths.nix nix: Fix fallback paths 2020-04-10 21:13:15 +02:00
nixos-enter.sh nixos-enter: redirect to fd2 instead of a file named /dev/stderr 2020-02-12 21:18:27 -05:00
nixos-generate-config.pl nixos: default nix.maxJobs to auto 2020-04-07 08:45:56 +01:00
nixos-install.sh nixos/nixos-installer: add flags for verbosity and build logs 2019-12-22 22:46:58 +01:00
nixos-rebuild.sh nixos-rebuild: Remove TODOs 2020-02-10 15:45:27 +01:00
nixos-version.sh Doh 2020-02-10 16:32:59 +01:00
tools.nix nixos-option: Disable on Nix >= 2.4 because it doesn't compile 2020-03-20 14:52:22 +01:00