aboutsummaryrefslogtreecommitdiff
path: root/lib/nix-furnace/mkSystem.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nix-furnace/mkSystem.nix')
-rw-r--r--lib/nix-furnace/mkSystem.nix22
1 files changed, 18 insertions, 4 deletions
diff --git a/lib/nix-furnace/mkSystem.nix b/lib/nix-furnace/mkSystem.nix
index 3285f3a..cf14f4a 100644
--- a/lib/nix-furnace/mkSystem.nix
+++ b/lib/nix-furnace/mkSystem.nix
@@ -97,9 +97,23 @@ let
}
else {}
)
-
- # This is where we would add nix-on-droid modules
];
};
-in
- mkNixosSystem
+
+ mkSystemManagerSystem = {
+ inputs,
+ hostname,
+ }:
+ inputs.system-manager.lib.makeSystemConfig {
+ modules =
+ [../../modules/options.nix ../../hosts/${hostname}/system.nix]
+ ++ (listModules
+ |> (builtins.map (modName: [
+ (lazyImport ../../modules/${modName}/options.nix)
+ (lazyImport ../../modules/${modName}/system/default.nix)
+ ]))
+ |> my-lib.flatten);
+ };
+in {
+ inherit mkNixosSystem mkSystemManagerSystem;
+}