From 0725574ad8bf07106faf2e53b6b709036f69af13 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 10 Aug 2023 14:15:07 +0200 Subject: [PATCH] move standalone test to separate file --- tests/default.nix | 4 +--- tests/standalone.nix | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tests/standalone.nix diff --git a/tests/default.nix b/tests/default.nix index da6d3e7..b9b516e 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -13,8 +13,6 @@ let (lib.attrNames (builtins.readDir ./.)) ); - allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; }) // { - standalone = (pkgs.nixos [ ../example/stand-alone/configuration.nix ]).config.system.build.toplevel; - }; + allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; }); in allTests diff --git a/tests/standalone.nix b/tests/standalone.nix new file mode 100644 index 0000000..3b6eb58 --- /dev/null +++ b/tests/standalone.nix @@ -0,0 +1,7 @@ +{ pkgs ? import { } +, diskoLib ? pkgs.callPackage ../lib { } +}: +(pkgs.nixos [ + ../example/stand-alone/configuration.nix + { documentation.enable = false; } +]).config.system.build.toplevel