From fc5116d75c3acfd7adb87b8930ff60c09a78f9ed Mon Sep 17 00:00:00 2001 From: éclairevoyant <848000+eclairevoyant@users.noreply.github.com> Date: Tue, 5 Mar 2024 00:09:45 -0500 Subject: nixos/scrutiny: clean up `mkEnableOption` definitions --- nixos/modules/services/monitoring/scrutiny.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix index 604270ae79147..7de15150d668a 100644 --- a/nixos/modules/services/monitoring/scrutiny.nix +++ b/nixos/modules/services/monitoring/scrutiny.nix @@ -13,15 +13,11 @@ in { options = { services.scrutiny = { - enable = mkEnableOption "Enables the scrutiny web application."; + enable = mkEnableOption "Scrutiny, a web application for drive monitoring"; package = mkPackageOption pkgs "scrutiny" { }; - openFirewall = mkOption { - type = bool; - default = false; - description = "Open the default ports in the firewall for Scrutiny."; - }; + openFirewall = mkEnableOption "opening the default ports in the firewall for Scrutiny"; influxdb.enable = mkOption { type = bool; @@ -91,11 +87,7 @@ in description = "The port of the InfluxDB instance."; }; - options.web.influxdb.tls.insecure_skip_verify = mkOption { - type = bool; - default = false; - description = "Skip TLS verification when connecting to InfluxDB."; - }; + options.web.influxdb.tls.insecure_skip_verify = mkEnableOption "skipping TLS verification when connecting to InfluxDB"; options.web.influxdb.token = mkOption { type = nullOr str; @@ -118,7 +110,7 @@ in }; collector = { - enable = mkEnableOption "Enables the scrutiny metrics collector."; + enable = mkEnableOption "the Scrutiny metrics collector"; package = mkPackageOption pkgs "scrutiny-collector" { }; -- cgit 1.4.1