Add of roundcube
This commit is contained in:
parent
a3c5f8b272
commit
372b6bc4bb
4 changed files with 39 additions and 8 deletions
|
|
@ -9,9 +9,12 @@
|
|||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./package.nix
|
||||
./searXNG.nix
|
||||
./module/searXNG.nix
|
||||
./module/roundcube.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
|
@ -113,13 +116,6 @@
|
|||
useRoutingFeatures = "server"; # or "client" / "both"
|
||||
};
|
||||
|
||||
services.roundcube = {
|
||||
enable = false;
|
||||
hostName = "webmail.example.com";
|
||||
};
|
||||
|
||||
services.nginx.enable = false;
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 443 ];
|
||||
|
|
|
|||
35
module/roundcube.nix
Normal file
35
module/roundcube.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
hostName = "_";
|
||||
|
||||
plugins = [ "multiple_accounts" ];
|
||||
|
||||
extraConfig = ''
|
||||
# PurelyMail is the entreprise who host my mail
|
||||
$config['default_host'] = 'ssl://imap.purelymail.com';
|
||||
$config['default_port'] = 993;
|
||||
$config['smtp_server'] = 'tls://smtp.purelymail.com';
|
||||
$config['smtp_port'] = 465;
|
||||
$config['smtp_user'] = '%u';
|
||||
$config['smtp_pass'] = '%p';
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts."_" = {
|
||||
listen = [
|
||||
{ addr = "0.0.0.0"; port = 1984; }
|
||||
];
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 1984 ];
|
||||
|
||||
}
|
||||
0
module/vaultWarden.nix
Normal file
0
module/vaultWarden.nix
Normal file
Loading…
Add table
Add a link
Reference in a new issue