From 10c22ef344bc22ca62e916d30468e97e368ff99b Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Tue, 9 Sep 2025 20:39:48 -0500 Subject: system-manager for non-nixos machine ganymede --- lib/nix-furnace/mkSystem.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'lib/nix-furnace') 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; +} -- cgit v1.3.1