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

15 lines
294 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib }:
{ userFlakeSelf }:
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;
2021-04-19 00:35:11 +00:00
hmConfigs = mapAttrs mkHomes userFlakeSelf.nixosConfigurations;
in
2021-04-10 01:22:08 +00:00
foldl recursiveUpdate { } (attrValues hmConfigs)