WIP: Module tweaks

This commit is contained in:
Jonas Juselius
2020-10-29 19:27:52 +01:00
parent a217f55231
commit 1a79de379e
4 changed files with 82 additions and 91 deletions

33
lib/module.nix Normal file
View File

@@ -0,0 +1,33 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.k8s;
in
{
options.k8s = {
initca = mkOption {
type = types.path;
};
clusterName = mkOption {
type = types.str;
};
hosts = mkOption {
type = types.listOf types.set;
default = [];
};
clusterHosts = mkOption {
type = types.str;
};
adminAuthorizedKeys = mkOption {
type = types.listOf types.str;
default = [];
};
};
config = {
};
}