nixos/network-interfaces: Refactor scripts for reliability and dependency removal