From b5120953c6f27e5bab6a4a02744c0bae47f80a3c Mon Sep 17 00:00:00 2001 From: Victor SENE Date: Mon, 1 Oct 2018 17:12:56 +0200 Subject: [PATCH] nixos/roundcube: add roundcube module and default configuration --- nixos/modules/services/mail/roundcube.nix | 89 +++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 nixos/modules/services/mail/roundcube.nix diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix new file mode 100644 index 000000000000..fc655add00e0 --- /dev/null +++ b/nixos/modules/services/mail/roundcube.nix @@ -0,0 +1,89 @@ +{ lib, config, pkgs, ... }: + +with lib; + +let + cfg = config.services.roundcube; +in +{ + options.services.roundcube = { + enable = mkEnableOption "Roundcube"; + + listenAddress = mkOption { + type = types.str; + default = 127.0.0.1; + description = "Listening address"; + }; + + listenPort = mkOption { + type = types.int; + default = 80; + description = "Listening port"; + }; + + subDomain = mkOption { + type = types.str; + example = "webmail"; + description = "Sub-domain to use which is the name of the nginx vhost"; + }; + + extraConfig = mkOption { + type = types.str; + default = '' +