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