about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mk_system.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix
index 70149fe..ba24d21 100644
--- a/lib/mk_system.nix
+++ b/lib/mk_system.nix
@@ -21,11 +21,8 @@
           }
           entryPoint
           hardware
-          # TODO: import all modules (use mapModules?)
-          ../modules/flakes.nix
-          ../modules/nix.nix
-          ../modules/nixpkgs.nix
-        ] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; }
+        ] ++ self.lib.mapModulesRec' ../modules import
+        ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; }
         ++ nixpkgs.lib.optionals (extraModules != null) extraModules;
 
         # let deployment options to be set without breaking eval on nixosConfigurations