12 lines
271 B
Nix
12 lines
271 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)
|