pub-solar-os/lib/devos/mkHomeConfigurations.nix
2021-04-09 19:22:08 -06:00

13 lines
271 B
Nix

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