use unevaluatedNixosConfigurations instead
This commit is contained in:
parent
bd1e6d73c9
commit
d413aeb5c0
|
@ -81,7 +81,7 @@ in
|
|||
loki = {
|
||||
enable = true;
|
||||
configuration = {
|
||||
server.http_listen_port = 3100;
|
||||
server.http_listen_port = registry.port-loki;
|
||||
auth_enabled = false;
|
||||
|
||||
ingester = {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
port = 5432;
|
||||
authentication =
|
||||
let
|
||||
senpai-ip = self.nixosConfigurations.notice-me-senpai._module.specialArgs.registry.wgAddr4;
|
||||
senpai-ip = self.unevaluatedNixosConfigurations.notice-me-senpai.specialArgs.registry.wgAddr4;
|
||||
# TODO: fixme
|
||||
uranus-ip = "10.13.37.9";
|
||||
in
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, config, self, registry, ... }:
|
||||
let
|
||||
cfg = config.deployment-TLMS.monitoring;
|
||||
monitoring-host = self.nixosConfigurations.notice-me-senpai;
|
||||
monitoring-host-registry = self.unevaluatedNixosConfigurations.notice-me-senpai.specialArgs.registry;
|
||||
in
|
||||
{
|
||||
options.deployment-TLMS.monitoring = with lib; {
|
||||
|
@ -59,7 +59,7 @@ in
|
|||
filename = "/tmp/positions.yaml";
|
||||
};
|
||||
clients = [{
|
||||
url = "http://${monitoring-host._module.specialArgs.registry.wgAddr4}:${toString monitoring-host.config.services.loki.configuration.server.http_listen_port}/loki/api/v1/push";
|
||||
url = "http://${monitoring-host-registry.wgAddr4}:${toString monitoring-host-registry.port-loki}/loki/api/v1/push";
|
||||
}];
|
||||
scrape_configs = [{
|
||||
job_name = "journal";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
enableTCPIP = true;
|
||||
authentication = let
|
||||
senpai-ip =
|
||||
self.nixosConfigurations.notice-me-senpai._module.specialArgs.registry.wgAddr4;
|
||||
self.unevaluatedNixosConfigurations.notice-me-senpai.specialArgs.registry.wgAddr4;
|
||||
in pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
wgAddr4 = "10.13.37.200";
|
||||
wireguardPublicKey = "z2E9TjL9nn0uuLmyQexqddE6g8peB5ENyf0LxpMolD4=";
|
||||
publicWireguardEndpoint = null;
|
||||
port-loki = 3100;
|
||||
};
|
||||
uranus = {
|
||||
hostName = "uranus";
|
||||
|
|
Loading…
Reference in New Issue