forked from pub-solar/os
e98e595704
have mkHomeConfiguration create its own custom build within the function create a externalModule for customBuilds so its easy to add more
16 lines
377 B
Nix
16 lines
377 B
Nix
{ 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
|
|
foldl recursiveUpdate { } (attrValues hmConfigs)
|