From 9d6245c1111ca544228600704a38a80138a00f21 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Fri, 30 Oct 2020 17:04:04 +0100 Subject: [PATCH] Allow for os customizations --- lib/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 87bc68b..2ba10f8 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,4 +1,4 @@ -{ pkgs, cfg, lib, config, ... }: +{ pkgs, cfg, customize, lib, config, ... }: with lib; let pki = import ./pki.nix { inherit pkgs; ca = cfg.initca; }; @@ -41,6 +41,8 @@ in { apiserver = host: self: { deployment.targetHost = host.address; + inherit customize; + cluster = cfg // { hostName = host.name; cert = mkCert host.name; @@ -54,6 +56,8 @@ in { node = host: self: { deployment.targetHost = host.address; + inherit customize; + cluster = cfg // { hostName = host.name; cert = mkCert host.name; @@ -75,6 +79,8 @@ in { mkNode = host: self: { deployment.targetHost = host.address; + inherit customize; + cluster = cfg // { hostName = host.name; cert = mkCert host.name; @@ -92,6 +98,8 @@ in { node = host: self: { deployment.targetHost = host.address; + inherit customize; + cluster = cfg // { hostName = host.name; cert = mkCert host.name;