nixos-config/modules/k3s/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

27 lines
392 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.k3s;
in
{
options.eboskma.k3s = {
enable = mkEnableOption "k3s";
};
config = mkIf cfg.enable {
services.k3s = {
enable = true;
extraFlags = "--tls-san=10.0.0.4 --tls-san=100.106.117.132";
};
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
];
};
}