pub-solar-os/lib/devos/mkHomeConfigurations.nix
2021-04-18 19:11:26 -05:00

13 lines
284 B
Nix

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