about summary refs log tree commit diff
path: root/nixos/tests/installer/byAttrNoChannel.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/installer/byAttrNoChannel.nix')
-rw-r--r--nixos/tests/installer/byAttrNoChannel.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/installer/byAttrNoChannel.nix b/nixos/tests/installer/byAttrNoChannel.nix
new file mode 100644
index 0000000000000..03293cd4a0e35
--- /dev/null
+++ b/nixos/tests/installer/byAttrNoChannel.nix
@@ -0,0 +1,18 @@
+# This file gets copied into the installation
+
+let
+  nixpkgs = "@nixpkgs@";
+in
+
+{ evalConfig ? import "${nixpkgs}/nixos/lib/eval-config.nix" }:
+
+evalConfig {
+  modules = [
+    ./configuration.nix
+    ( import "${nixpkgs}/nixos/modules/testing/test-instrumentation.nix" )
+    {
+      # Disable nix channels
+      nix.channel.enable = false;
+    }
+  ];
+}