How to disable a network interface in configuration

I have ethernet disabled in BIOS, I read somewhere that it is the only way to stop the battery drain on the physical interface.

However, on startup, nixos spends 1 minute and 30 seconds trying to up this interface.

I would like to disable it in my configuration file but I can’t find the relevant option.

Thanks!

I’m not entirely sure, but I think disabling dhcp on the interface should do the trick:

{
  networking.interfaces.<ifname>.useDHCP = false;
}