mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
15 lines
367 B
Nix
15 lines
367 B
Nix
{ pkgs, ... }:
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 6443 ];
|
|
environment.systemPackages = [
|
|
pkgs.kubectl
|
|
pkgs.kubernetes-helm
|
|
];
|
|
services.k3s.enable = true;
|
|
services.k3s.extraFlags = toString [
|
|
# flags for using Calico instead of Flannel
|
|
"--cluster-cidr=192.168.0.0/16"
|
|
"--disable-network-policy"
|
|
"--flannel-backend=none"
|
|
];
|
|
}
|