summary refs log tree commit diff
path: root/nixos/tests/all-tests.nix
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2022-01-20 14:42:46 +0100
committerGitHub <noreply@github.com>2022-01-20 14:42:46 +0100
commit98ae5a9298d8a8372b626f72b34388e7848b437a (patch)
tree9c52abb86b83fad21e310bcd398b6d3950087ff9 /nixos/tests/all-tests.nix
parent8072fdf5ca1f31546f5dbf3a1888eeba8ca4ae28 (diff)
parent3168017b90440220c69d4ba8f39f469024b4cafe (diff)
downloadnixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar.gz
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar.bz2
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar.lz
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar.xz
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.tar.zst
nixpkgs-98ae5a9298d8a8372b626f72b34388e7848b437a.zip
Merge pull request #153211 from hercules-ci/minimal-nixos
Add minimal NixOS entrypoint
Diffstat (limited to 'nixos/tests/all-tests.nix')
-rw-r--r--nixos/tests/all-tests.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index b2f223e7ccd..6e66e9cbe96 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -19,6 +19,13 @@ let
   handleTestOn = systems: path: args:
     if elem system systems then handleTest path args
     else {};
+
+  nixosLib = import ../lib {
+    # Experimental features need testing too, but there's no point in warning
+    # about it, so we enable the feature flag.
+    featureFlags.minimalModules = {};
+  };
+  evalMinimalConfig = module: nixosLib.evalModules { modules = [ module ]; };
 in
 {
   _3proxy = handleTest ./3proxy.nix {};
@@ -331,6 +338,7 @@ in
   nix-serve-ssh = handleTest ./nix-serve-ssh.nix {};
   nixops = handleTest ./nixops/default.nix {};
   nixos-generate-config = handleTest ./nixos-generate-config.nix {};
+  nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { inherit evalMinimalConfig; };
   node-red = handleTest ./node-red.nix {};
   nomad = handleTest ./nomad.nix {};
   novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};