From f8da9c68e739bd1865c0e1fbe4742de2cf020d96 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 3 Jul 2024 13:21:12 +0300 Subject: [PATCH] Fix deprecated option warnings --- hosts/cube/forgejo/default.nix | 2 +- hosts/cube/prometheus.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/cube/forgejo/default.nix b/hosts/cube/forgejo/default.nix index 53e734f..fb074c0 100644 --- a/hosts/cube/forgejo/default.nix +++ b/hosts/cube/forgejo/default.nix @@ -72,7 +72,7 @@ in systemConfiguration { services.forgejo = enabled { lfs = enabled; - mailerPasswordFile = config.secrets.forgejoMailPassword.path; + secrets.mailer.PASSWD = config.secrets.forgejoMailPassword.path; database = { socket = "/run/postgresql"; diff --git a/hosts/cube/prometheus.nix b/hosts/cube/prometheus.nix index 857b908..0e8c4c8 100644 --- a/hosts/cube/prometheus.nix +++ b/hosts/cube/prometheus.nix @@ -22,7 +22,7 @@ systemConfiguration { scrapeConfigs = with lib; let configToScrapeConfig = name: { config, ... }: pipe config.services.prometheus.exporters [ - (filterAttrs (const (value: value.enable or false))) + (filterAttrs (name: value: name != "minio" && name != "unifi-poller" && value.enable or false)) (mapAttrsToList (expName: expConfig: { job_name = "${expName}-${name}";