lib/vagrant-nixos/provisioner.rb
def cleanup_network!
        # Abort if a private network has been defined
        machine.config.vm.networks.each do |cfg|
          return if cfg[0] == :private_network
        end
        machine.communicate.sudo("rm -f /etc/nixos/vagrant-network.nix")
      end
# Cleanup the network file if it hasn't been set in the Vagrantfile
Cleanup the network file if it hasn't been set in the Vagrantfile
Cleanup the network file if it hasn ' t been set in the Vagrantfile
def cleanup_network!
        machine.config.vm.networks.each do |cfg|
          return if cfg[0] == :private_network
        end
        machine.communicate.sudo("rm -f /etc/nixos/vagrant-network.nix")
      end
def cleanup_network! machine . config . vm . networks . each do | cfg | return if cfg [ 0 ] == :private_network end machine . communicate . sudo ( "rm -f /etc/nixos/vagrant-network.nix" ) end
Cleanup the network file if it hasn't been set in the Vagrantfile
Cleanup the network file if it hasn ' t been set in the Vagrantfile
# Abort if a private network has been defined