5 name = "activation-nix-channel";
7 meta.maintainers = with lib.maintainers; [ nikstur ];
10 nix.channel.enable = true;
13 testScript = { nodes, ... }: ''
14 machine.start(allow_reboot=True)
16 assert machine.succeed("cat /root/.nix-channels") == "${nodes.machine.system.defaultChannel} nixos\n"
18 nixpkgs_unstable_channel = "https://nixos.org/channels/nixpkgs-unstable nixpkgs"
19 machine.succeed(f"echo '{nixpkgs_unstable_channel}' > /root/.nix-channels")
23 assert machine.succeed("cat /root/.nix-channels") == f"{nixpkgs_unstable_channel}\n"