From e9f32c5b5d0bf87f1f5d923c8e6c8433dee60a05 Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Sun, 31 May 2026 22:21:24 -0500 Subject: [PATCH] run k3s deploys as root --- homelab-services/nimh-static/flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homelab-services/nimh-static/flake.nix b/homelab-services/nimh-static/flake.nix index 749b933..2eaf755 100644 --- a/homelab-services/nimh-static/flake.nix +++ b/homelab-services/nimh-static/flake.nix @@ -35,6 +35,8 @@ }; }; + config = lib.mkIf opts.enable { + systemd.services.nimh-static = { description = "oneshot apply service to k3s"; after = [ "k3s.service" ]; @@ -48,7 +50,6 @@ echo "Generating templated files" gomplate=${pkgs.gomplate}/bin/gomplate $gomplate --input-dir=${k3sDir} --output-dir=$kubernetes_config -d site=file://${siteDir}/index.html?type=text/plain - cat $kubernetes_config/configmap.yaml echo "Applying k3s config" kubectl=${pkgs.kubectl}/bin/kubectl $kubectl apply -k $kubernetes_config