2021-04-19 02:45:08 +00:00
|
|
|
{ lib }:
|
|
|
|
|
2021-04-24 01:13:03 +00:00
|
|
|
nixosConfigurations:
|
2021-03-23 14:37:11 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2021-04-28 18:30:04 +00:00
|
|
|
mkHomes = hostName: host:
|
|
|
|
mapAttrs' (user: v: nameValuePair "${user}@${hostName}" v.home)
|
|
|
|
# So this function is useful for non-devos hosts
|
|
|
|
(host.config.system.build.homes or host.config.home-manager.users);
|
2021-03-23 14:37:11 +00:00
|
|
|
|
2021-04-24 01:13:03 +00:00
|
|
|
hmConfigs = mapAttrs mkHomes nixosConfigurations;
|
2021-03-23 14:37:11 +00:00
|
|
|
|
|
|
|
in
|
2021-04-10 01:22:08 +00:00
|
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|