mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
13 lines
380 B
Nix
13 lines
380 B
Nix
{ pkgs, ... }:
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 6443 ];
|
|
environment.systemPackages = [ pkgs.kubectl ];
|
|
services.k3s.enable = true;
|
|
|
|
# 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 ];
|
|
});
|
|
}
|