2021-03-23 14:37:11 +00:00
|
|
|
{ lib, self, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
mkHomes = host: config:
|
2021-04-11 05:04:49 +00:00
|
|
|
mapAttrs' (user: v: nameValuePair "${user}@${host}" v.home)
|
2021-04-10 01:22:08 +00:00
|
|
|
config.config.system.build.homes;
|
2021-03-23 14:37:11 +00:00
|
|
|
|
|
|
|
hmConfigs = mapAttrs mkHomes self.nixosConfigurations;
|
|
|
|
|
|
|
|
in
|
2021-04-10 01:22:08 +00:00
|
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|