2021-04-19 05:45:08 +03:00
|
|
|
{ lib }:
|
|
|
|
|
2021-04-24 04:13:03 +03:00
|
|
|
nixosConfigurations:
|
2021-03-23 17:37:11 +03:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2021-04-28 21:30:04 +03: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 17:37:11 +03:00
|
|
|
|
2021-04-24 04:13:03 +03:00
|
|
|
hmConfigs = mapAttrs mkHomes nixosConfigurations;
|
2021-03-23 17:37:11 +03:00
|
|
|
|
|
|
|
in
|
2021-04-10 04:22:08 +03:00
|
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|