diff --git a/nixos/configuration.nix b/nixos/configuration.nix index a8df3ef6..5c3e7893 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -19,6 +19,7 @@ ./gnome.nix ./imalison.nix ./internet-computer.nix + ./k3s.nix ./kat.nix ./keybase.nix ./kubelet.nix diff --git a/nixos/k3s.nix b/nixos/k3s.nix new file mode 100644 index 00000000..32251841 --- /dev/null +++ b/nixos/k3s.nix @@ -0,0 +1,23 @@ +{ config, makeEnable, ... }: +makeEnable config "myModules.railbird-k3s" false { + services.k3s = { + enable = true; + role = "server"; + clusterInit = true; + containerdConfigTemplate = '' + {{ template "base" . }} + + [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia] + privileged_without_host_devices = false + runtime_engine = "" + runtime_root = "" + runtime_type = "io.containerd.runc.v2" + + [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia.options] + BinaryName = "/run/current-system/sw/bin/nvidia-container-runtime" + ''; + gracefulNodeShutdown = { + enable = true; + }; + }; +} diff --git a/nixos/machines/ryzen-shine.nix b/nixos/machines/ryzen-shine.nix index ff9421ea..ee1d75b4 100644 --- a/nixos/machines/ryzen-shine.nix +++ b/nixos/machines/ryzen-shine.nix @@ -6,7 +6,7 @@ ]; features.full.enable = true; - myModules.kubelet.enable = true; + myModules.kubelet.enable = false; myModules.nvidia.enable = true; # Needed for now because monitors have different refresh rates myModules.xmonad.picom.vSync.enable = false;