about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mk_system.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix
index ba24d21..c9d2705 100644
--- a/lib/mk_system.nix
+++ b/lib/mk_system.nix
@@ -39,4 +39,7 @@
         nodeSpecialArgs = builtins.mapAttrs (_: value: value._module.specialArgs) conf;
       };
     } // builtins.mapAttrs (_: value: { imports = value._module.args.modules; }) conf;
+
+  mkHydraFromNixOSConfigurations = conf:
+    unstable.lib.mapAttrs' (name: value: { name = "nixos-${name}"; value = value.config.system.build.toplevel; }) conf;
 }