diff --git a/morph/lib/base.nix b/morph/lib/base.nix index fd0e21c996ae42cff8fdd90c1bbdd34a20a4a733..aafbf4f4e62b064284e42b5a05905495380736dc 100644 --- a/morph/lib/base.nix +++ b/morph/lib/base.nix @@ -1,5 +1,5 @@ # This module contains settings and configuration that apply to all nodes in a grid. -{ lib, config, ...}: +{ lib, config, nodes, ...}: { options.grid = { publicKeyPath = lib.mkOption { @@ -59,7 +59,9 @@ networking.hosts = { # To stream logs to the monitoring host, all nodes need to know its address - "172.23.23.1" = [ "monitoring" "monitoring.monitoringvpn" ]; + ${nodes.monitoring.config.services.private-storage.monitoring.vpn.server.ip} = [ + "monitoring" "monitoring.monitoringvpn" + ]; }; services.private-storage.monitoring.exporters.promtail.enable = true;