os/lib/devos/mkHomeConfigurations.nix

15 lines
282 B
Nix
Raw Normal View History

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