1 { pkgs, lib, config, nodes, ... }:
3 inherit (config) networking;
4 prodIPv4 = "192.168.1.213";
10 builtins.getAttr (lib.maybeEnv "NIXOPS_DEPLOYMENT" "production")
11 { production = "192.168.1.1";
14 #defaultGateway6 = "";
15 nameservers = [ "192.168.1.1" ];
19 { address = prodIPv4; prefixLength = 24; }
24 { address = "fe80::1"; prefixLength = 10; }
28 builtins.getAttr (lib.maybeEnv "NIXOPS_DEPLOYMENT" "production")
40 deployment = lib.mkIf (builtins.hasAttr "mermet" nodes) {
42 builtins.getAttr (lib.maybeEnv "NIXOPS_DEPLOYMENT" "production")
43 { production = prodIPv4;
44 maintenance = networking.hostName;