helm/hosts/profiles/kuberenetes/default.nix

21 lines
582 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
# k3s
networking.firewall.allowedTCPPorts = [ 6443 ];
services.k3s.enable = true;
services.k3s.role = "server";
2023-05-04 21:04:30 -07:00
services.k3s.clusterInit = true;
# services.k3s.extraFlags = toString [
# "--kubelet-arg=v=4" # Optionally add additional args to k3s
# ];
environment.systemPackages = [ pkgs.k3s pkgs.kubernetes-helm ];
2023-05-04 21:04:30 -07:00
# minikube on docker
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
# or use kvm
2023-05-11 06:04:13 -07:00
#virtualisation.libvrt.enable = true;
users.users.anish.extraGroups = [ "docker" ]; # "libvert"
}