Skip to content

Commit

Permalink
use unevaluatedNixosConfigurations instead
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Nov 26, 2023
1 parent bd1e6d7 commit d413aeb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hosts/notice-me-senpai/grafana.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion hosts/tram-borzoi/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/TLMS/monitoring.nix
Original file line number Diff line number Diff line change
@@ -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; {
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion modules/data-hoarder/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions registry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
wgAddr4 = "10.13.37.200";
wireguardPublicKey = "z2E9TjL9nn0uuLmyQexqddE6g8peB5ENyf0LxpMolD4=";
publicWireguardEndpoint = null;
port-loki = 3100;
};
uranus = {
hostName = "uranus";
Expand Down

0 comments on commit d413aeb

Please sign in to comment.