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