summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-12-05 22:46:13 +0100
committerpennae <github@quasiparticle.net>2021-12-09 01:42:24 +0100
commit1060fefae3a3a56cc86acda6346efb9b1d854b31 (patch)
treeec82191f9105922191ed233a51538c661154c8f4 /nixos/modules/services/databases
parent9407761763a61a4f0551c43aa3b818d7ede1fa39 (diff)
downloadnixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar.gz
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar.bz2
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar.lz
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar.xz
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.tar.zst
nixpkgs-1060fefae3a3a56cc86acda6346efb9b1d854b31.zip
nixos/tarsnap, nixos/neo4j: defaultText for submodule options
unfortunately we don't have a good way to represent defaults that
reference other values of the current submodule, so we just use the
relative path of the referenced value and assume that the submodule was
declared as `rec`.
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/neo4j.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/neo4j.nix b/nixos/modules/services/databases/neo4j.nix
index b258d698664..8816f3b2e4b 100644
--- a/nixos/modules/services/databases/neo4j.nix
+++ b/nixos/modules/services/databases/neo4j.nix
@@ -437,6 +437,7 @@ in {
           baseDirectory = mkOption {
             type = types.path;
             default = "${cfg.directories.certificates}/${name}";
+            defaultText = literalExpression ''"''${config.${opt.directories.certificates}}/''${name}"'';
             description = ''
               The mandatory base directory for cryptographic objects of this
               policy. This path is only automatically generated when this
@@ -498,6 +499,7 @@ in {
           revokedDir = mkOption {
             type = types.path;
             default = "${config.baseDirectory}/revoked";
+            defaultText = literalExpression ''"''${config.${options.baseDirectory}}/revoked"'';
             description = ''
               Path to directory of CRLs (Certificate Revocation Lists) in
               PEM format. Must be an absolute path. The existence of this
@@ -533,6 +535,7 @@ in {
           trustedDir = mkOption {
             type = types.path;
             default = "${config.baseDirectory}/trusted";
+            defaultText = literalExpression ''"''${config.${options.baseDirectory}}/trusted"'';
             description = ''
               Path to directory of X.509 certificates in PEM format for
               trusted parties. Must be an absolute path. The existence of this