diff options
Diffstat (limited to 'nixpkgs/nixos/tests/activation/nix-channel.nix')
-rw-r--r-- | nixpkgs/nixos/tests/activation/nix-channel.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/activation/nix-channel.nix b/nixpkgs/nixos/tests/activation/nix-channel.nix new file mode 100644 index 000000000000..8416ff0347ac --- /dev/null +++ b/nixpkgs/nixos/tests/activation/nix-channel.nix @@ -0,0 +1,16 @@ +{ lib, ... }: + +{ + + name = "activation-nix-channel"; + + meta.maintainers = with lib.maintainers; [ nikstur ]; + + nodes.machine = { + nix.channel.enable = true; + }; + + testScript = '' + print(machine.succeed("cat /root/.nix-channels")) + ''; +} |