Fix node exporter failing to start

This commit is contained in:
minish 2026-03-12 01:12:12 -04:00
parent c4a2215822
commit bf81c73eca
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
_: let _: let
ipInternal = "10.13.1.1"; # TODO: hardcoding ipInternal = "10.13.1.1"; # TODO: hardcoding
inherit (import ../../modules/nebula/shared.nix) unit;
in { in {
services.prometheus.exporters = { services.prometheus.exporters = {
node = { node = {
@ -8,4 +9,8 @@ in {
enabledCollectors = ["systemd"]; enabledCollectors = ["systemd"];
}; };
}; };
systemd.services."prometheus-node-exporter" = {
wants = [unit];
after = [unit];
};
} }

View File

@ -4,4 +4,5 @@ rec {
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/nebula.nix # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/nebula.nix
interface = "nebula.${netName}"; interface = "nebula.${netName}";
userGroup = "nebula-${netName}"; userGroup = "nebula-${netName}";
unit = "nebula@${netName}.service";
} }