summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-10-31 18:42:06 +0100
committerGitHub <noreply@github.com>2023-10-31 18:42:06 +0100
commit37209a6799ff29fdb96c7b6d587f06c4bdc87dda (patch)
tree1b9830b3e33ef7b696dc2440be5b1ef093d589df /nixos/tests
parent0a1051cba784efc392695736399c17e51e687e44 (diff)
parent8c1739cafe62ebf2d60d83241ccab871a14ee14c (diff)
downloadnixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar.gz
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar.bz2
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar.lz
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar.xz
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.tar.zst
nixpkgs-37209a6799ff29fdb96c7b6d587f06c4bdc87dda.zip
Merge pull request #264608 from nikstur/nix-channel-fix-default
nixos/nix-channel: fix subscribing to default channel
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/activation/nix-channel.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/activation/nix-channel.nix b/nixos/tests/activation/nix-channel.nix
index 8416ff0347a..a01a66ebc1b 100644
--- a/nixos/tests/activation/nix-channel.nix
+++ b/nixos/tests/activation/nix-channel.nix
@@ -10,7 +10,8 @@
     nix.channel.enable = true;
   };
 
-  testScript = ''
-    print(machine.succeed("cat /root/.nix-channels"))
+  testScript = { nodes, ... }: ''
+    assert machine.succeed("cat /root/.nix-channels") == "${nodes.machine.system.defaultChannel} nixos\n"
   '';
+
 }