about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mk_home.nix5
1 files changed, 4 insertions, 1 deletions
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;
 }