diff options
author | sefidel <contact@sefidel.net> | 2024-02-12 04:08:41 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-02-12 04:08:41 +0900 |
commit | 1667225338871c538eca3d68b401c0dfe5e5071d (patch) | |
tree | e9d100d90869d026c91e7b748c35765421400ba9 | |
parent | 1bee1bc7e661d4a22d83e14b6cad021ad6b985b5 (diff) | |
download | nixrc-1667225338871c538eca3d68b401c0dfe5e5071d.tar.gz nixrc-1667225338871c538eca3d68b401c0dfe5e5071d.zip |
feat(lib): add mkHydraFromHomeConfigurations
-rw-r--r-- | lib/mk_home.nix | 5 |
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; } |