From 158cc7d9b1aae4629190358aed0df26e9b3198c2 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Mon, 27 Jul 2020 20:55:25 +0100 Subject: add extraConfig to eth.services.mosquitto --- nixos/modules/services/mosquitto.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/mosquitto.nix b/nixos/modules/services/mosquitto.nix index fecf8a4..0934014 100644 --- a/nixos/modules/services/mosquitto.nix +++ b/nixos/modules/services/mosquitto.nix @@ -23,6 +23,8 @@ let persistence true persistence_location ${stateDirectory}/ ''} + + ${cfg.extraConfig} ''; in { @@ -62,6 +64,13 @@ in { }; }; + extraConfig = mkOption { + type = types.str; + description = "Config to append to the generated config."; + example = '' + log_type all + ''; + }; }; config = mkIf cfg.enable { -- cgit v1.2.3