pub-solar-os/lib/devos/mkHomeConfigurations.nix

15 lines
282 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib }:
nixosConfigurations:
with lib;
let
mkHomes = host: config:
mapAttrs' (user: v: nameValuePair "${user}@${host}" v.home)
2021-04-10 01:22:08 +00:00
config.config.system.build.homes;
hmConfigs = mapAttrs mkHomes nixosConfigurations;
in
2021-04-10 01:22:08 +00:00
foldl recursiveUpdate { } (attrValues hmConfigs)