2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-01-02 22:41:05 +01:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.k3s;
|
|
|
|
in
|
|
|
|
{
|
2024-02-05 11:46:52 +01:00
|
|
|
options.eboskma.k3s = {
|
|
|
|
enable = mkEnableOption "k3s";
|
|
|
|
};
|
2024-01-02 22:41:05 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.k3s = {
|
|
|
|
enable = true;
|
|
|
|
extraFlags = "--tls-san=10.0.0.4 --tls-san=100.106.117.132";
|
|
|
|
};
|
|
|
|
|
2024-02-05 11:46:52 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kubectl
|
|
|
|
kubernetes-helm
|
|
|
|
];
|
2024-01-02 22:41:05 +01:00
|
|
|
};
|
|
|
|
}
|