Allow for os customizations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user