diff options
author | Matthew Daiter <matthew@nomoko.camera> | 2016-11-21 15:46:04 +0100 |
---|---|---|
committer | Matthew Daiter <matthew@nomoko.camera> | 2016-11-21 15:46:04 +0100 |
commit | f11899798ed15863ef2bd40c74d7153d57ddf8aa (patch) | |
tree | cbb1f30aab36152fed771b44c5d4eac5281a3ad4 /nixos | |
parent | f10ec922e06c99a89a65bfcbff8e2c5a399ee5bf (diff) |
riak: added extraAdvancedConfig option to service module
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/riak.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/riak.nix b/nixos/modules/services/databases/riak.nix index d592d2e8ffdde..e0ebf164aef03 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; |