From 34e395341859326e57b78ddb705e87ac31ef0211 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 15 Dec 2023 20:45:54 +0100 Subject: [PATCH] fix(dgn-runners): Set NIX_PATH to current version --- modules/dgn-runners/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dgn-runners/default.nix b/modules/dgn-runners/default.nix index 7fbc35d..9197521 100644 --- a/modules/dgn-runners/default.nix +++ b/modules/dgn-runners/default.nix @@ -39,7 +39,7 @@ let cfg = config.dgn-runners; - storePaths = "nix-store --query -R ${builtins.toString cfg.dependencies}"; + storePaths = "nix-store --query -R ${builtins.toString (cfg.dependencies ++ [ pkgs.path ])}"; in { options.dgn-runners = { enable = mkEnableOption "Forgero Actions Runners."; @@ -310,6 +310,7 @@ in { "-e NIX_BUILD_SHELL=/bin/bash" "-e PAGER=cat" "-e PATH=/bin" + "-e NIX_PATH=nixpkgs=${builtins.toString pkgs.path}" "--device /dev/kvm" "-e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt" "-v ${cfg.storePath}:/nix"