From 990b7f0180ce0e50848fe184e0d7c66b846e3d29 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 30 Dec 2024 18:33:23 -0700 Subject: [PATCH] Restore environment override --- nixos/k3s.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/k3s.nix b/nixos/k3s.nix index 0dfa4f40..4596ed80 100644 --- a/nixos/k3s.nix +++ b/nixos/k3s.nix @@ -72,6 +72,14 @@ in { ]; }; + systemd.services = { + nvidia-container-toolkit-cdi-generator = { + # Even with `--library-search-path`, `nvidia-ctk` won't find the libs + # unless I bodge their path into the environment. + environment.LD_LIBRARY_PATH = "${config.hardware.nvidia.package}/lib"; + }; + }; + systemd.services.mount-railbird-bucket = { after = ["agenix.service"]; wantedBy = [ "multi-user.target" ];