From 7c5f14ee6170338a65ea84e10b54bc18f8c272b2 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 2 Jan 2025 09:03:19 -0500 Subject: [PATCH] Persist kubernetes client config. --- nix/configuration/roles/kubernetes/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nix/configuration/roles/kubernetes/default.nix b/nix/configuration/roles/kubernetes/default.nix index 74ad70e..cc3d926 100644 --- a/nix/configuration/roles/kubernetes/default.nix +++ b/nix/configuration/roles/kubernetes/default.nix @@ -40,4 +40,19 @@ in alias_kdel alias_kd ]; + + environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) { + hideMounts = true; + users.talexander = { + directories = [ + { + directory = ".kube"; + user = "talexander"; + group = "talexander"; + mode = "0750"; + } + ]; + }; + }; + }