move standalone test to separate file

This commit is contained in:
lassulus 2023-08-10 14:15:07 +02:00 committed by mergify[bot]
parent e4af31d97b
commit 0725574ad8
2 changed files with 8 additions and 3 deletions

View file

@ -13,8 +13,6 @@ let
(lib.attrNames (builtins.readDir ./.)) (lib.attrNames (builtins.readDir ./.))
); );
allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; }) // { allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; });
standalone = (pkgs.nixos [ ../example/stand-alone/configuration.nix ]).config.system.build.toplevel;
};
in in
allTests allTests

7
tests/standalone.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> { }
, diskoLib ? pkgs.callPackage ../lib { }
}:
(pkgs.nixos [
../example/stand-alone/configuration.nix
{ documentation.enable = false; }
]).config.system.build.toplevel