2021-04-18 21:45:08 -05:00
|
|
|
{ lib }:
|
|
|
|
|
2021-04-23 18:13:03 -07:00
|
|
|
nixosConfigurations:
|
2021-03-23 07:37:11 -07:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
mkHomes = host: config:
|
2021-04-10 22:04:49 -07:00
|
|
|
mapAttrs' (user: v: nameValuePair "${user}@${host}" v.home)
|
2021-04-09 19:22:08 -06:00
|
|
|
config.config.system.build.homes;
|
2021-03-23 07:37:11 -07:00
|
|
|
|
2021-04-23 18:13:03 -07:00
|
|
|
hmConfigs = mapAttrs mkHomes nixosConfigurations;
|
2021-03-23 07:37:11 -07:00
|
|
|
|
|
|
|
in
|
2021-04-09 19:22:08 -06:00
|
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|