ark/lib/devos/mkHomeConfigurations.nix

15 lines
294 B
Nix
Raw Normal View History

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