Allow for os customizations
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, cfg, lib, config, ... }:
|
{ pkgs, cfg, customize, lib, config, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
pki = import ./pki.nix { inherit pkgs; ca = cfg.initca; };
|
pki = import ./pki.nix { inherit pkgs; ca = cfg.initca; };
|
||||||
@@ -41,6 +41,8 @@ in {
|
|||||||
apiserver = host: self: {
|
apiserver = host: self: {
|
||||||
deployment.targetHost = host.address;
|
deployment.targetHost = host.address;
|
||||||
|
|
||||||
|
inherit customize;
|
||||||
|
|
||||||
cluster = cfg // {
|
cluster = cfg // {
|
||||||
hostName = host.name;
|
hostName = host.name;
|
||||||
cert = mkCert host.name;
|
cert = mkCert host.name;
|
||||||
@@ -54,6 +56,8 @@ in {
|
|||||||
node = host: self: {
|
node = host: self: {
|
||||||
deployment.targetHost = host.address;
|
deployment.targetHost = host.address;
|
||||||
|
|
||||||
|
inherit customize;
|
||||||
|
|
||||||
cluster = cfg // {
|
cluster = cfg // {
|
||||||
hostName = host.name;
|
hostName = host.name;
|
||||||
cert = mkCert host.name;
|
cert = mkCert host.name;
|
||||||
@@ -75,6 +79,8 @@ in {
|
|||||||
mkNode = host: self: {
|
mkNode = host: self: {
|
||||||
deployment.targetHost = host.address;
|
deployment.targetHost = host.address;
|
||||||
|
|
||||||
|
inherit customize;
|
||||||
|
|
||||||
cluster = cfg // {
|
cluster = cfg // {
|
||||||
hostName = host.name;
|
hostName = host.name;
|
||||||
cert = mkCert host.name;
|
cert = mkCert host.name;
|
||||||
@@ -92,6 +98,8 @@ in {
|
|||||||
node = host: self: {
|
node = host: self: {
|
||||||
deployment.targetHost = host.address;
|
deployment.targetHost = host.address;
|
||||||
|
|
||||||
|
inherit customize;
|
||||||
|
|
||||||
cluster = cfg // {
|
cluster = cfg // {
|
||||||
hostName = host.name;
|
hostName = host.name;
|
||||||
cert = mkCert host.name;
|
cert = mkCert host.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user