feat : Add modular service to hostname
This commit is contained in:
parent
9453773af6
commit
1637885001
11 changed files with 112 additions and 66 deletions
|
|
@ -1,16 +1,15 @@
|
|||
{ config,pkgs,lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004") {
|
||||
lib.mkIf config.sROUNDCUBE.enable {
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
hostName = "${config.HostName}";
|
||||
|
||||
plugins = [ "multiple_accounts" ];
|
||||
|
||||
configureNginx = false;
|
||||
|
||||
extraConfig = ''
|
||||
# PurelyMail is the entreprise who host my mail
|
||||
# PurelyMail configuration
|
||||
$config['default_host'] = 'ssl://imap.purelymail.com';
|
||||
$config['default_port'] = 993;
|
||||
$config['smtp_server'] = 'tls://smtp.purelymail.com';
|
||||
|
|
@ -22,5 +21,4 @@ lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004") {
|
|||
|
||||
systemd.services.nginx.serviceConfig.ProtectHome = false;
|
||||
users.groups.roundcube.members = [ "nginx" ];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue