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 = '' +