flake.nix: Improve nixosModules.notDetected error location reporting

This is mostly equivalent, but `import` was hiding the location
from the module system, breaking error location reporting and
breaking `disabledModules` support for this module (unlikely).
This commit is contained in:
Robert Hensing 2022-10-06 16:52:38 +02:00
parent 27a89ba43b
commit 33c8c0fb00

View File

@ -48,7 +48,7 @@
legacyPackages = forAllSystems (system: import ./. { inherit system; });
nixosModules = {
notDetected = import ./nixos/modules/installer/scan/not-detected.nix;
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
};
};
}