infra/nixos/hosts/eidola/k3s.nix

14 lines
295 B
Nix
Raw Normal View History

2024-11-03 21:38:19 -06:00
{config, ...}: {
sops.secrets."k3s-token" = {
sopsFile = ../../../secrets/k3s-token.txt;
format = "binary";
};
services.k3s = {
enable = true;
role = "agent";
serverAddr = "https://silver.int.min.rip:6443";
tokenFile = config.sops.secrets."k3s-token".path;
};
}