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