refactor(3p): Prepare for restricted-eval

Change-Id: I1e577400717833c3de75bfef38950565716580bb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5684
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2022-05-26 14:42:39 +02:00 committed by clbot
parent 250300f167
commit 65953e0913

View file

@ -31,20 +31,20 @@
, ... , ...
}: }:
let let
eval = import "${pkgs.path}/nixos/lib/eval-config.nix" { eval = import (pkgs.path + "/nixos/lib/eval-config.nix") {
inherit specialArgs system; inherit specialArgs system;
modules = [ modules = [
configuration configuration
(import "${depot.path + "/ops/modules/default-imports.nix"}") (import (depot.path.origSrc + "/ops/modules/default-imports.nix"))
]; ];
}; };
# This is for `nixos-rebuild build-vm'. # This is for `nixos-rebuild build-vm'.
vmConfig = (import "${pkgs.path}/nixos/lib/eval-config.nix" { vmConfig = (import (pkgs.path + "/nixos/lib/eval-config.nix") {
inherit specialArgs system; inherit specialArgs system;
modules = [ modules = [
configuration configuration
"${pkgs.path}/nixos/modules/virtualisation/qemu-vm.nix" (pkgs.path + "/nixos/modules/virtualisation/qemu-vm.nix")
]; ];
}).config; }).config;
in in