1 { pkgs, lib, config, options, nodes, ... }:
2 let ipv4 = if options.networking.privateIPv4.isDefined
3 then config.networking.privateIPv4
8 // lib.mkIf (builtins.hasAttr "mermet" nodes) {
10 interfaces."enp0s8" = {
11 #macAddress = "00:11:22:33:44:55";
12 #ipv4.addresses = [ { address = ipv4; prefixLength = 32; } ];
13 ipv6.addresses = [ { address = "fe80::1"; prefixLength = 10; } ];