2021-03-23 07:37:11 -07:00
|
|
|
{ lib, self, ... }:
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
hmConfigs = mapAttrs mkHomes self.nixosConfigurations;
|
|
|
|
|
|
|
|
in
|
2021-04-09 19:22:08 -06:00
|
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|