From 1bee1bc7e661d4a22d83e14b6cad021ad6b985b5 Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 12 Feb 2024 04:08:17 +0900 Subject: feat(lib): add mkHydraFromNixOSConfigurations --- lib/mk_system.nix | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit 1.4.1