2021-02-23 12:58:29 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2021-11-02 09:34:26 -07:00
|
|
|
with lib;
|
2021-04-07 14:03:52 -07:00
|
|
|
let
|
2021-09-24 11:31:56 -07:00
|
|
|
syslib = pkgs.callPackage ../lib/hosts.nix {};
|
2021-04-07 14:03:52 -07:00
|
|
|
|
|
|
|
in {
|
2021-11-02 09:34:26 -07:00
|
|
|
config.fudo.hosts = let
|
|
|
|
build-seed = config.instance.build-seed;
|
|
|
|
base-config = syslib.base-host-config ./hosts;
|
|
|
|
in mapAttrs (hostname: base-config:
|
|
|
|
base-config // {
|
|
|
|
backplane-password-file =
|
|
|
|
pkgs.lib.fudo.passwd.stablerandom-passwd-file
|
|
|
|
"${hostname}-host-backplane-passwd"
|
|
|
|
"${hostname}-host-backplane-passwd-${build-seed}";
|
|
|
|
}) base-config;
|
2021-02-23 12:58:29 -08:00
|
|
|
}
|