[18:42] <Reventlov> Hello
[18:42] <Reventlov> Can I prevent the network config to be written after the first boot ?
[18:46] <minimal> Reventlov: *after* the 1st boot or during the 1st boot?
[18:47] <Reventlov> well, I need cloud-init to configure network only once, so I want to disable it after it has configured the network once
[18:48] <Reventlov> https://0x0.st/oapl.txt this is my conf right now, but i'm not sure which parts handle the network
[18:48] <minimal> which DataSource are you using?
[18:49] <minimal> also your config has "distro: nixos". I don't believe cloud-init currently has NixOS support so are you using someone's patched version of cloud-init?
[18:50] <Reventlov> config drive
[18:51] <Reventlov> the patch is provided by my distribution, yes: https://github.com/NixOS/nixpkgs/blob/634141959076a8ab69ca2cca0f266852256d79ee/pkgs/tools/virtualization/cloud-init/0001-add-nixos-support.patch
[18:51] <Reventlov> but that should not be such a problem, no ?
[18:51] <Reventlov> or maybe there is not a way to disable the network configuration that's standard across cloud-init ?
[18:52] <minimal> so where is the network config coming from? Unlike NoCloud I don't believe ConfigDrive support providing a network-config YAML file
[18:53] <Reventlov> well, i'm actually using proxmox that exposes the data as a /dev/sr0 in the system, isn't this configdrive ?
[18:56] <minimal> that can be either configdrive or nocloud - what's the ISO label? "cidata" or "configdrive" ?
[18:56] <minimal> oops s/configdrive/config-2/
[18:58] <Reventlov> sr0    iso9660       cidata 2022-05-21-19-55-37-00                     0   100% /mnt
[18:58] <minimal> that's NoCloud then
[18:59] <minimal> which can include a network-config file - is there one there?
[19:03] <minimal> assuming there is a network-config in the ISO then I believe it should only be used on 1st boot
[19:04] <minimal> that Nix packaging is 21.4, a couple of releases behind current, but it should still work as expected
[19:30] <minimal> Reventlov: ^^^
[19:35] <Reventlov> i'm looking into that, that might be the nixos service that sucks, thanks for the details :)
[19:35] <Reventlov> (there is actually a network-config in the ISO)
[19:44] <minimal> so when you say you only want to configure the network once, what do you mean? the contents of the network-config file in the ISO should be applied. Is the contents changing on each reboot?