summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Daiter <matthew@nomoko.camera>2016-11-21 15:46:04 +0100
committerMatthew Daiter <matthew@nomoko.camera>2016-11-21 15:46:04 +0100
commitf11899798ed15863ef2bd40c74d7153d57ddf8aa (patch)
treecbb1f30aab36152fed771b44c5d4eac5281a3ad4
parentf10ec922e06c99a89a65bfcbff8e2c5a399ee5bf (diff)
downloadnixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar.gz
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar.bz2
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar.lz
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar.xz
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.tar.zst
nixpkgs-f11899798ed15863ef2bd40c74d7153d57ddf8aa.zip
riak: added extraAdvancedConfig option to service module
-rw-r--r--nixos/modules/services/databases/riak.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/riak.nix b/nixos/modules/services/databases/riak.nix
index d592d2e8ffd..e0ebf164aef 100644
--- a/nixos/modules/services/databases/riak.nix
+++ b/nixos/modules/services/databases/riak.nix
@@ -70,6 +70,14 @@ in
         '';
       };
 
+      extraAdvancedConfig = mkOption {
+        type = types.lines;
+        default = "";
+        description = ''
+          Additional text to be appended to <filename>advanced.config</filename>.
+        '';
+      };
+
     };
 
   };
@@ -90,6 +98,10 @@ in
       ${cfg.extraConfig}
     '';
 
+    environment.etc."riak/advanced.config".text = ''
+      ${cfg.extraAdvancedConfig}
+    '';
+
     users.extraUsers.riak = {
       name = "riak";
       uid = config.ids.uids.riak;