nixos/prometheus-exporters: fix assertions declared in exporter modules

And it turns out, the test was using a removed option all along 🙃
This commit is contained in:
Maximilian Bosch 2024-09-05 12:05:54 +02:00
parent 4d262e749f
commit 4980a7d938
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

View File

@ -230,6 +230,7 @@ let
in in
mkIf conf.enable { mkIf conf.enable {
warnings = conf.warnings or []; warnings = conf.warnings or [];
assertions = conf.assertions or [];
users.users."${name}-exporter" = (mkIf (conf.user == "${name}-exporter" && !enableDynamicUser) { users.users."${name}-exporter" = (mkIf (conf.user == "${name}-exporter" && !enableDynamicUser) {
description = "Prometheus ${name} exporter service user"; description = "Prometheus ${name} exporter service user";
isSystemUser = true; isSystemUser = true;

View File

@ -482,7 +482,6 @@ let
json = { json = {
exporterConfig = { exporterConfig = {
enable = true; enable = true;
url = "http://localhost";
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON { configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
modules = { modules = {
default = { default = {