pub-solar-os/lib/devos/mkHomeConfigurations.nix

13 lines
276 B
Nix
Raw Normal View History

{ lib, self, ... }:
with lib;
let
mkHomes = host: config:
mapAttrs' (user: v: nameValuePair "${user}@${host}" v.home)
2021-04-10 01:22:08 +00:00
config.config.system.build.homes;
hmConfigs = mapAttrs mkHomes self.nixosConfigurations;
in
2021-04-10 01:22:08 +00:00
foldl recursiveUpdate { } (attrValues hmConfigs)