From 33c8c0fb00c5a5ca6a13cd0e61c43175ad73d21d Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 6 Oct 2022 16:52:38 +0200 Subject: [PATCH] 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). --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 67ecfc6eb08..3cac2798d35 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }; }