modules(drone-exec-runner): leak nixpkgs read-only for bootstrapping

This commit is contained in:
Raito Bezarius 2021-07-26 03:33:27 +02:00
parent 2d9da6ab1f
commit 3f6a760254

View file

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