os/lib/devos/mkHomeConfigurations.nix
2021-04-18 20:04:19 -05:00

13 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)