{ pkgs, lib, config, nodes, ... }: let targetHost = "192.168.1.214"; in { networking = { useDHCP = false; interfaces.enp1s0 = { useDHCP = false; ipv4.addresses = [ { address = targetHost; prefixLength = 32; } ]; ipv4.routes = [ ]; }; interfaces.enp2s0 = { useDHCP = true; }; interfaces.enp3s0 = { useDHCP = false; }; }; deployment = lib.mkIf (builtins.hasAttr "mermet" nodes) { inherit targetHost; }; }