Sha256: fde9de38136f3ac68d1647d17e26c3b3cf84d9da4de686a1c19ba5f9b0289d37

Contents?: true

Size: 405 Bytes

Versions: 56

Compression:

Stored size: 405 Bytes

Contents

{ config, pkgs, ... }:
{
  networking.interfaces = [
    <% networks.select {|n| n[:device]}.each do |network| %>
    { 
      name         = "<%= network[:device] %>";
      <% if network[:type] == :static %>
      ipAddress    = "<%= network[:ip] %>";
      <% end %>
      <% if network[:prefix_length] %>
      prefixLength = <%= network[:prefix_length] %>;
      <% end %>
    }
    <% end %>
  ];
}

Version data entries

56 entries across 49 versions & 7 rubygems

Version Path
vagrant-unbundled-2.2.14.0 templates/guests/nixos/network.erb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/templates/guests/nixos/network.erb
vagrant-unbundled-2.2.10.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.9.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.8.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.7.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.6.2 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.6.1 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.6.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.5.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.4.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.3.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.2.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.2.0.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.1.4.0 templates/guests/nixos/network.erb
vagrant-unbundled-2.1.2.0 templates/guests/nixos/network.erb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/templates/guests/nixos/network.erb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/templates/guests/nixos/network.erb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/templates/guests/nixos/network.erb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/templates/guests/nixos/network.erb