fix(dgn-runners): Set NIX_PATH to current version

This commit is contained in:
Tom Hubrecht 2023-12-15 20:45:54 +01:00
parent cad5da6d1d
commit 34e3953418

View file

@ -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"