diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2021-12-06 01:35:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 01:35:38 +0100 |
commit | 862d167f17953b690f389b8f8f425aa752d18b74 (patch) | |
tree | e23a5843235011731578f3c5526582a8ad92a628 /nixos/modules/services/monitoring | |
parent | 8ae9ae17b4de60e4b6d59b7de1dca08ce61d8af2 (diff) | |
parent | c694c35f9da13e7008b281d757385e6ad525e22a (diff) | |
download | nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar.gz nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar.bz2 nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar.lz nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar.xz nixlib-862d167f17953b690f389b8f8f425aa752d18b74.tar.zst nixlib-862d167f17953b690f389b8f8f425aa752d18b74.zip |
Merge pull request #147441 from pennae/option-doc-staticizing
nixos/*: add trivial defaultText to options where applicable
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r-- | nixos/modules/services/monitoring/graphite.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/monitoring/nagios.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/monitoring/parsedmarc.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/monitoring/smartd.nix | 3 |
4 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index 4690a252c925..0dbb33530c92 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -324,6 +324,7 @@ in { mongoUrl = mkOption { default = "mongodb://${config.services.mongodb.bind_ip}:27017/seyren"; + defaultText = literalExpression ''"mongodb://''${config.services.mongodb.bind_ip}:27017/seyren"''; description = "Mongodb connection string."; type = types.str; }; diff --git a/nixos/modules/services/monitoring/nagios.nix b/nixos/modules/services/monitoring/nagios.nix index 83020d52fc82..2c7f0ed19668 100644 --- a/nixos/modules/services/monitoring/nagios.nix +++ b/nixos/modules/services/monitoring/nagios.nix @@ -131,6 +131,7 @@ in validateConfig = mkOption { type = types.bool; default = pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform; + defaultText = literalExpression "pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform"; description = "if true, the syntax of the nagios configuration file is checked at build time"; }; diff --git a/nixos/modules/services/monitoring/parsedmarc.nix b/nixos/modules/services/monitoring/parsedmarc.nix index eeee04b4400c..8571e1f01ed6 100644 --- a/nixos/modules/services/monitoring/parsedmarc.nix +++ b/nixos/modules/services/monitoring/parsedmarc.nix @@ -93,6 +93,7 @@ in dashboard = lib.mkOption { type = lib.types.bool; default = config.services.grafana.enable; + defaultText = lib.literalExpression "config.services.grafana.enable"; description = '' Whether the official parsedmarc grafana dashboard should be provisioned to the local grafana instance. diff --git a/nixos/modules/services/monitoring/smartd.nix b/nixos/modules/services/monitoring/smartd.nix index 3ea254371142..73021b1b4d38 100644 --- a/nixos/modules/services/monitoring/smartd.nix +++ b/nixos/modules/services/monitoring/smartd.nix @@ -125,6 +125,7 @@ in mail = { enable = mkOption { default = config.services.mail.sendmailSetuidWrapper != null; + defaultText = literalExpression "config.services.mail.sendmailSetuidWrapper != null"; type = types.bool; description = "Whenever to send e-mail notifications."; }; @@ -169,12 +170,14 @@ in x11 = { enable = mkOption { default = config.services.xserver.enable; + defaultText = literalExpression "config.services.xserver.enable"; type = types.bool; description = "Whenever to send X11 xmessage notifications."; }; display = mkOption { default = ":${toString config.services.xserver.display}"; + defaultText = literalExpression ''":''${toString config.services.xserver.display}"''; type = types.str; description = "DISPLAY to send X11 notifications to."; }; |