nixos-config/hosts/levi/kube.nix

14 lines
380 B
Nix
Raw Normal View History

2022-11-01 03:21:41 +00:00
{ pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 6443 ];
2022-11-06 23:53:46 +00:00
environment.systemPackages = [ pkgs.kubectl ];
2022-11-01 03:21:41 +00:00
services.k3s.enable = true;
2022-11-06 23:53:46 +00:00
# Get NetworkPolicy working
networking.firewall.enable = false;
systemd.services.k3s.path = [ pkgs.ipset ];
services.k3s.package = pkgs.k3s.overrideAttrs (prev: {
buildInputs = prev.buildInputs ++ [ pkgs.ipset ];
});
2022-11-01 03:21:41 +00:00
}