about summary refs log tree commit diff
path: root/nixos/tests/installer
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-07-07 18:53:19 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-07-07 19:00:06 +0200
commitd00e242b805a5580e542dd5fb7c6b3e035be8697 (patch)
treed70dcaabaec1ea773b88547773f7282c5ac75b7f /nixos/tests/installer
parentfaa1b3babcd338bf1a67486071b71e9514b86060 (diff)
nixos: Add nixos.channel.enable
For those who wish to get rid of nix-channel.
Diffstat (limited to 'nixos/tests/installer')
-rw-r--r--nixos/tests/installer/flake.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/installer/flake.nix b/nixos/tests/installer/flake.nix
new file mode 100644
index 0000000000000..4bbef44e34fc9
--- /dev/null
+++ b/nixos/tests/installer/flake.nix
@@ -0,0 +1,20 @@
+# This file gets copied into the installation
+
+{
+  # To keep things simple, we'll use an absolute path dependency here.
+  inputs.nixpkgs.url = "@nixpkgs@";
+
+  outputs = { nixpkgs, ... }: {
+
+    nixosConfigurations.xyz = nixpkgs.lib.nixosSystem {
+      modules = [
+        ./configuration.nix
+        ( nixpkgs + "/nixos/modules/testing/test-instrumentation.nix" )
+        {
+          # We don't need nix-channel anymore
+          nix.channel.enable = false;
+        }
+      ];
+    };
+  };
+}