From 1667225338871c538eca3d68b401c0dfe5e5071d Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 12 Feb 2024 04:08:41 +0900 Subject: feat(lib): add mkHydraFromHomeConfigurations --- lib/mk_home.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/mk_home.nix') diff --git a/lib/mk_home.nix b/lib/mk_home.nix index 8e63324..d416787 100644 --- a/lib/mk_home.nix +++ b/lib/mk_home.nix @@ -1,4 +1,4 @@ -{ self, home-manager, ... } @ inputs: +{ self, home-manager, unstable, ... } @ inputs: { mkHome = { username, hostname, pkgs, version, extraModules ? null }: let @@ -27,4 +27,7 @@ entrypoint ] ++ pkgs.lib.optionals (extraModules != null) extraModules; }; + + mkHydraFromHomeConfigurations = conf: + unstable.lib.mapAttrs' (name: value: { name = "home-${name}"; value = value.activationPackage; }) conf; } -- cgit 1.4.1