ark/lib/devos/mkHomeConfigurations.nix

13 lines
271 B
Nix
Raw Normal View History

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