From fae2859c4ebcb5c25025cdbd1dffb294a2b9e38e Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 13 Nov 2022 01:41:20 +0100 Subject: mkSandboxSystem: use supplied pkgs instance --- example/flake.nix | 2 +- lib/mk-sandbox-system.nix | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/example/flake.nix b/example/flake.nix index 8557265..50931c6 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -59,7 +59,7 @@ # forwarded explicitly from host to guest and vice-versa. # (flaky-utils.lib.mkSandboxSystem { - inherit nixpkgs system; + inherit pkgs; name = "sandbox"; user = "dummy"; diff --git a/lib/mk-sandbox-system.nix b/lib/mk-sandbox-system.nix index 5574736..232fc4c 100644 --- a/lib/mk-sandbox-system.nix +++ b/lib/mk-sandbox-system.nix @@ -1,5 +1,4 @@ -{ nixpkgs -, system +{ pkgs , name ? "sandbox" , user ? "dummy" , config ? { } @@ -8,8 +7,6 @@ }: let - pkgs = import nixpkgs { inherit system; }; - # Patched QEMU to fix slow 9p file share. # https://linus.schreibt.jetzt/posts/qemu-9p-performance.html qemu_kvm_patched_9p = -- cgit v1.2.3