summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-24 10:35:38 +0100
committerlassulus <lassulus@lassul.us>2022-12-24 12:13:04 +0100
commit4ce2aa484599f967a2d4411f5c2e575898a53e7e (patch)
tree99c67e40a98d7b75d142c476bd4035be47d3cb2f
parent12c7e608edb41ac81316555bb4556b82d5b5a12c (diff)
tests swap: add jq to system
-rw-r--r--tests/default.nix2
-rw-r--r--tests/swap.nix3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/default.nix b/tests/default.nix
index c10cf76..c7c15a5 100644
--- a/tests/default.nix
+++ b/tests/default.nix
@@ -20,7 +20,7 @@ let
(lib.attrNames (builtins.readDir ./.))
);
- allTests = lib.genAttrs (allTestFilenames) (test: import (./. + "/${test}.nix") { inherit makeDiskoTest; }) //
+ allTests = lib.genAttrs (allTestFilenames) (test: import (./. + "/${test}.nix") { inherit makeDiskoTest pkgs; }) //
evalTest "lvm-luks-example" ../example/config.nix // {
standalone = (pkgs.nixos [ ../example/stand-alone/configuration.nix ]).config.system.build.toplevel;
};
diff --git a/tests/swap.nix b/tests/swap.nix
index d3268dc..4861f8d 100644
--- a/tests/swap.nix
+++ b/tests/swap.nix
@@ -16,4 +16,7 @@ makeDiskoTest {
'
""");
'';
+ extraConfig = {
+ environment.systemPackages = [ pkgs.jq ];
+ };
}