helm/hosts/profiles/kuberenetes/default.nix

21 lines
600 B
Nix
Raw Normal View History

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