From 2fed480cdd82d7b313097ce651b5ecb39ac09885 Mon Sep 17 00:00:00 2001 From: olaf Date: Mon, 11 Sep 2023 12:22:30 +0200 Subject: [PATCH] pkgs = import nixpkgs {config = {}; overlays = [];}; --- .../nixos/integration-testing-using-virtual-machines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tutorials/nixos/integration-testing-using-virtual-machines.md b/source/tutorials/nixos/integration-testing-using-virtual-machines.md index 33af91c..85138c8 100644 --- a/source/tutorials/nixos/integration-testing-using-virtual-machines.md +++ b/source/tutorials/nixos/integration-testing-using-virtual-machines.md @@ -30,7 +30,7 @@ The scaffolding of a test nix file looks like the following: ```nix let nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-22.11"; - pkgs = import nixpkgs {}; + pkgs = import nixpkgs {config = {}; overlays = [];}; in pkgs.nixosTest { name = "test-name"; @@ -135,7 +135,7 @@ The complete `minimal-test.nix` file content looks like the following: ```{code-block} let nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-22.11.tar.gz"; - pkgs = import nixpkgs {}; + pkgs = import nixpkgs {config = {}; overlays = [];}; in pkgs.nixosTest { name = "minimal-test"; @@ -284,7 +284,7 @@ The complete `postgrest.nix` file looks like the following: let # Pin nixpkgs, see pinning tutorial for more details nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/0f8f64b54ed07966b83db2f20c888d5e035012ef.tar.gz"; - pkgs = import nixpkgs {}; + pkgs = import nixpkgs {config = {}; overlays = [];}; # Single source of truth for all tutorial constants database = "postgres";