about summary refs log tree commit diff
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
parent6212558c61f7a55710f9f53a47711beb17f42f4e (diff)
downloadnixrc-7dfd6977aad6ddbb742c738d39daa388557b315b.tar.gz
nixrc-7dfd6977aad6ddbb742c738d39daa388557b315b.zip
feat(nixos): import all modules by default
-rw-r--r--lib/mk_system.nix7
-rw-r--r--nixos/default.nix16
2 files changed, 2 insertions, 21 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
diff --git a/nixos/default.nix b/nixos/default.nix
index 1e4cc94..8fc1ba7 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -5,11 +5,6 @@
     name = "alpha";
     nixpkgs = unstable;
     extraModules = [
-      ../modules/security.nix
-      ../modules/cachix
-      ../modules/keyd-qol.nix
-      ../modules/devkit.nix
-      ../modules/trayscale.nix
       inputs.sops-nix.nixosModules.sops
       inputs.impermanence.nixosModules.impermanence
     ];
@@ -19,12 +14,6 @@
     name = "haruka";
     nixpkgs = unstable;
     extraModules = [
-      ../modules/security.nix
-      ../modules/laptop.nix
-      ../modules/cachix
-      ../modules/keyd-qol.nix
-      ../modules/devkit.nix
-      ../modules/trayscale.nix
       inputs.sops-nix.nixosModules.sops
       inputs.impermanence.nixosModules.impermanence
     ];
@@ -34,11 +23,6 @@
     name = "kanata";
     nixpkgs = unstable;
     extraModules = [
-      ../modules/security.nix
-      ../modules/cachix
-      ../modules/trayscale.nix
-      ../modules/tailscale-initrd.nix
-      ../modules/services/blocky
       inputs.sops-nix.nixosModules.sops
       inputs.impermanence.nixosModules.impermanence
     ];