diff options
author | happysalada <raphael@megzari.com> | 2021-08-30 12:53:12 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-08-30 18:43:09 +0900 |
commit | 36cf478468c707fa2e867227ce04b1a729fdf6f7 (patch) | |
tree | 63530f13d4e5c00e935ded1c4e1547ecbe907f2b | |
parent | 87e5bc2cc2222a4e63ae2699be805725103db904 (diff) | |
download | nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar.gz nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar.bz2 nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar.lz nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar.xz nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.tar.zst nixpkgs-36cf478468c707fa2e867227ce04b1a729fdf6f7.zip |
rabbitmq: nixpkgs-fmt
-rw-r--r-- | nixos/modules/services/amqp/rabbitmq.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/services/amqp/rabbitmq.nix b/nixos/modules/services/amqp/rabbitmq.nix index fc8a1bc3c23..2db28210262 100644 --- a/nixos/modules/services/amqp/rabbitmq.nix +++ b/nixos/modules/services/amqp/rabbitmq.nix @@ -7,12 +7,13 @@ let inherit (builtins) concatStringsSep; - config_file_content = lib.generators.toKeyValue {} cfg.configItems; + config_file_content = lib.generators.toKeyValue { } cfg.configItems; config_file = pkgs.writeText "rabbitmq.conf" config_file_content; advanced_config_file = pkgs.writeText "advanced.config" cfg.config; -in { +in +{ ###### interface options = { services.rabbitmq = { @@ -79,7 +80,7 @@ in { }; configItems = mkOption { - default = {}; + default = { }; type = types.attrsOf types.str; example = literalExample '' { @@ -123,13 +124,13 @@ in { }; plugins = mkOption { - default = []; + default = [ ]; type = types.listOf types.str; description = "The names of plugins to enable"; }; pluginDirs = mkOption { - default = []; + default = [ ]; type = types.listOf types.path; description = "The list of directories containing external plugins"; }; @@ -180,7 +181,7 @@ in { RABBITMQ_ENABLED_PLUGINS_FILE = pkgs.writeText "enabled_plugins" '' [ ${concatStringsSep "," cfg.plugins} ]. ''; - } // optionalAttrs (cfg.config != "") { RABBITMQ_ADVANCED_CONFIG_FILE = advanced_config_file; }; + } // optionalAttrs (cfg.config != "") { RABBITMQ_ADVANCED_CONFIG_FILE = advanced_config_file; }; serviceConfig = { ExecStart = "${cfg.package}/sbin/rabbitmq-server"; |