Allow for os customizations

This commit is contained in:
Jonas Juselius
2020-10-30 17:04:04 +01:00
parent 71858698be
commit 9d6245c111

View File

@@ -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;