os/lib/devos/mkHomeConfigurations.nix

13 lines
284 B
Nix
Raw Normal View History

2021-04-18 23:30:07 +00:00
{ lib, userSelf, ... }:
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-18 23:30:07 +00:00
hmConfigs = mapAttrs mkHomes userSelf.nixosConfigurations;
in
2021-04-10 01:22:08 +00:00
foldl recursiveUpdate { } (attrValues hmConfigs)