modules(drone-exec-runner): leak nixpkgs read-only for bootstrapping
This commit is contained in:
parent
2d9da6ab1f
commit
3f6a760254
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ in
|
||||||
"NIX_REMOTE=daemon"
|
"NIX_REMOTE=daemon"
|
||||||
"PAGER=cat"
|
"PAGER=cat"
|
||||||
"DRONE_RUNNER_NAME=${runnerName}"
|
"DRONE_RUNNER_NAME=${runnerName}"
|
||||||
|
"NIX_PATH=nixpkgs=/var/nixpkgs"
|
||||||
] ++ cfg.env;
|
] ++ cfg.env;
|
||||||
|
|
||||||
BindPaths = [
|
BindPaths = [
|
||||||
|
@ -86,6 +87,7 @@ in
|
||||||
"/etc/passwd:/etc/passwd"
|
"/etc/passwd:/etc/passwd"
|
||||||
"/etc/group:/etc/group"
|
"/etc/group:/etc/group"
|
||||||
"/nix/var/nix/profiles/system/etc/nix:/etc/nix"
|
"/nix/var/nix/profiles/system/etc/nix:/etc/nix"
|
||||||
|
"/nix/var/nix/profiles/per-user/root/channels/nixos:/var/nixpkgs"
|
||||||
"${config.environment.etc."ssl/certs/ca-certificates.crt".source}:/etc/ssl/certs/ca-certificates.crt"
|
"${config.environment.etc."ssl/certs/ca-certificates.crt".source}:/etc/ssl/certs/ca-certificates.crt"
|
||||||
"${config.environment.etc."ssh/ssh_known_hosts".source}:/etc/ssh/ssh_known_hosts"
|
"${config.environment.etc."ssh/ssh_known_hosts".source}:/etc/ssh/ssh_known_hosts"
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
|
|
Loading…
Reference in a new issue