ark/lib/devos/mkHomeConfigurations.nix
2021-04-18 22:16:53 -05:00

15 lines
294 B
Nix

{ lib }:
{ userFlakeSelf }:
with lib;
let
mkHomes = host: config:
mapAttrs' (user: v: nameValuePair "${user}@${host}" v.home)
config.config.system.build.homes;
hmConfigs = mapAttrs mkHomes userFlakeSelf.nixosConfigurations;
in
foldl recursiveUpdate { } (attrValues hmConfigs)