os/lib/devos/mkHomeConfigurations.nix

16 lines
377 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib }:
nixosConfigurations:
with lib;
let
mkHomes = hostName: host:
mapAttrs' (user: v: nameValuePair "${user}@${hostName}" v.home)
# So this function is useful for non-devos hosts
(host.config.system.build.homes or host.config.home-manager.users);
hmConfigs = mapAttrs mkHomes nixosConfigurations;
in
2021-04-10 01:22:08 +00:00
foldl recursiveUpdate { } (attrValues hmConfigs)