about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-24 19:10:23 +0900
committersefidel <contact@sefidel.net>2024-01-24 19:10:23 +0900
commit7dfd6977aad6ddbb742c738d39daa388557b315b (patch)
treee23474ef4a208191f1e4bd47f753f2032a816458 /lib
parent6212558c61f7a55710f9f53a47711beb17f42f4e (diff)
downloadnixrc-7dfd6977aad6ddbb742c738d39daa388557b315b.tar.gz
nixrc-7dfd6977aad6ddbb742c738d39daa388557b315b.zip
feat(nixos): import all modules by default
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