about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authoréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2024-03-05 00:09:45 -0500
committeréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2024-03-07 23:21:53 -0500
commitfc5116d75c3acfd7adb87b8930ff60c09a78f9ed (patch)
tree72fc224ac7cdd8efb5405f0ac2f3198385ade255 /nixos/modules/services
parentce5dbf1b7b18bd55d5ac6f0ddf75d690ae19bad4 (diff)
downloadnixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar.gz
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar.bz2
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar.lz
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar.xz
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.tar.zst
nixlib-fc5116d75c3acfd7adb87b8930ff60c09a78f9ed.zip
nixos/scrutiny: clean up `mkEnableOption` definitions
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/monitoring/scrutiny.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix
index 604270ae7914..7de15150d668 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" { };