fix(dgn-runners): Set NIX_PATH to current version
This commit is contained in:
parent
cad5da6d1d
commit
34e3953418
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,7 @@ let
|
||||||
|
|
||||||
cfg = config.dgn-runners;
|
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 {
|
in {
|
||||||
options.dgn-runners = {
|
options.dgn-runners = {
|
||||||
enable = mkEnableOption "Forgero Actions Runners.";
|
enable = mkEnableOption "Forgero Actions Runners.";
|
||||||
|
@ -310,6 +310,7 @@ in {
|
||||||
"-e NIX_BUILD_SHELL=/bin/bash"
|
"-e NIX_BUILD_SHELL=/bin/bash"
|
||||||
"-e PAGER=cat"
|
"-e PAGER=cat"
|
||||||
"-e PATH=/bin"
|
"-e PATH=/bin"
|
||||||
|
"-e NIX_PATH=nixpkgs=${builtins.toString pkgs.path}"
|
||||||
"--device /dev/kvm"
|
"--device /dev/kvm"
|
||||||
"-e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt"
|
"-e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt"
|
||||||
"-v ${cfg.storePath}:/nix"
|
"-v ${cfg.storePath}:/nix"
|
||||||
|
|
Loading…
Reference in a new issue