Skip to content
Snippets Groups Projects
hardware-qemu.nix 410 B
Newer Older
  • Learn to ignore specific revisions
  • { config, lib, ... }:
    {
      imports = [
        # Options for this module are defined in ./hardware-virtual.nix
        ./hardware-virtual.nix
      ];
    
      config = {
        networking.primaryIPAddress = lib.mkForce config.grid.publicIPv4;
        networking.interfaces = lib.mkForce {
          eth1.ipv4.addresses = [
            {
              address = config.grid.publicIPv4;
              prefixLength = 24;
            }
          ];
        };
      };
    }