diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-09 20:39:48 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-09 20:39:48 -0500 |
| commit | 10c22ef344bc22ca62e916d30468e97e368ff99b (patch) | |
| tree | 2c2306a572d5df70059b0924ebd22f158a88aef6 /lib | |
| parent | e26a6405bd5916a2eb6bed47a02ccd5273716901 (diff) | |
system-manager for non-nixos machine ganymede
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nix-furnace/mkSystem.nix | 22 |
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; +} |
