about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/graphite.nix
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-12-05 22:56:22 +0100
committerpennae <github@quasiparticle.net>2021-12-09 01:42:24 +0100
commite67a646a925bc3cda86101a3f3afb81db3030ef5 (patch)
treefc91f2996187c22215a45c494a4fd21aba960db6 /nixos/modules/services/monitoring/graphite.nix
parent1f960e7571d46bd13dd4b5865f115467e100ef7d (diff)
treewide: add defaultText to remaining options
these are mostly options that use alias bindings, bindings to constants,
or bindings to calculated values.
Diffstat (limited to 'nixos/modules/services/monitoring/graphite.nix')
-rw-r--r--nixos/modules/services/monitoring/graphite.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix
index feb952324d443..7f4f2a0205a29 100644
--- a/nixos/modules/services/monitoring/graphite.nix
+++ b/nixos/modules/services/monitoring/graphite.nix
@@ -172,6 +172,13 @@ in {
             directories:
                 - ${dataDir}/whisper
         '';
+        defaultText = literalExpression ''
+          '''
+            whisper:
+              directories:
+                - ''${config.${opt.dataDir}}/whisper
+          '''
+        '';
         example = ''
           allowed_origins:
             - dashboard.example.com