diff options
author | aszlig <aszlig@nix.build> | 2018-04-03 02:29:28 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-04-03 02:37:27 +0200 |
commit | 8de4298b5c39ef177cdf33975cccd09c9ea2899c (patch) | |
tree | 44754332880fd3820f4ca729e3fc14de73740fd4 /machines | |
parent | 94e4aa0e8b05532da8b988ba4e7212b93270ae1e (diff) |
call-machine: Allow to work in restrict-eval mode
It's a bit unfortunate that I removed the extraConfig attribute from <vuizvui/machines> back then (49dc58c6f8d72a4e142176f25da52666ef9ae268). Now we could have used this argument to pass the nixpkgs path from release.nix back into call-machine.nix, but introducing that extra argument again would break the configs of all of the systems using Vuizvui. So instead, I've added a function exposed by call-machine called withPkgs, which overrides the whole attribute set returned by callMachine to use nixpkgs from the given argument. This allows us to run in restricted evaluation mode as enforced by Hydra and Nix 2.0 and while we could simply disable restricted eval, it's even better if we comply with it. Unfortunately I lied a bit, because we've been running in restricted eval mode before. This time however it seems that some change in Nix has caused this to be even more restrictive because now Nix search paths are not allowed as well. Relying on those within a Hydra jobset however is discouraged anyway. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines')
0 files changed, 0 insertions, 0 deletions