Add of roundcube
This commit is contained in:
parent
a3c5f8b272
commit
372b6bc4bb
4 changed files with 39 additions and 8 deletions
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 ];
|
||||
|
||||
}
|
||||
19
module/searXNG.nix
Normal file
19
module/searXNG.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config,lib,pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
searx = {
|
||||
enable = true;
|
||||
redisCreateLocally = true;
|
||||
package = pkgs.searxng;
|
||||
environmentFile = "/etc/searx.env";
|
||||
settings.server = {
|
||||
bind_address = "0.0.0.0";
|
||||
port = 1692;
|
||||
# WARNING: setting secret_key here might expose it to the nix cache
|
||||
# see below for the sops or environment file instructions to prevent this
|
||||
# secret_key = "$SEARXNG_SECRET";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
0
module/vaultWarden.nix
Normal file
0
module/vaultWarden.nix
Normal file
Loading…
Add table
Add a link
Reference in a new issue