13 lines
268 B
Nix
13 lines
268 B
Nix
{ lib, self, ... }:
|
|
|
|
with lib;
|
|
let
|
|
mkHomes = host: config:
|
|
mapAttrs' (user: v: nameValuePair "${user}@${host}" v)
|
|
config.config.system.build.homes;
|
|
|
|
hmConfigs = mapAttrs mkHomes self.nixosConfigurations;
|
|
|
|
in
|
|
foldl recursiveUpdate {} (attrValues hmConfigs)
|