aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-10-12 16:22:33 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-10-12 16:28:35 +0200
commit6962aacc84b50467e387294386b4cf51906f1dd4 (patch)
tree8aab94838e14fc4bc9ccb007df432aad275b85c8 /systems/eldiron
parent63226079b1697b6ccec1081239ca875bdc01f210 (diff)
downloadNix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.gz
Nix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.zst
Nix-6962aacc84b50467e387294386b4cf51906f1dd4.zip
Bump roundcube
Diffstat (limited to 'systems/eldiron')
-rw-r--r--systems/eldiron/flake.lock18
-rw-r--r--systems/eldiron/websites/mail/default.nix4
-rw-r--r--systems/eldiron/websites/mail/roundcubemail.nix13
3 files changed, 21 insertions, 14 deletions
diff --git a/systems/eldiron/flake.lock b/systems/eldiron/flake.lock
index 9d6c296..ce35075 100644
--- a/systems/eldiron/flake.lock
+++ b/systems/eldiron/flake.lock
@@ -813,7 +813,7 @@
813 }, 813 },
814 "locked": { 814 "locked": {
815 "lastModified": 1, 815 "lastModified": 1,
816 "narHash": "sha256-yHJid6Rpxa5pfKI81FfI0VZir9seZMHtLzjdvmt0FVw=", 816 "narHash": "sha256-aOCmHpzzQ3yXa5YrMr54luIYwZAj6Kd4io8r84vzRlo=",
817 "path": "../../mypackages", 817 "path": "../../mypackages",
818 "type": "path" 818 "type": "path"
819 }, 819 },
@@ -830,7 +830,7 @@
830 }, 830 },
831 "locked": { 831 "locked": {
832 "lastModified": 1, 832 "lastModified": 1,
833 "narHash": "sha256-yHJid6Rpxa5pfKI81FfI0VZir9seZMHtLzjdvmt0FVw=", 833 "narHash": "sha256-aOCmHpzzQ3yXa5YrMr54luIYwZAj6Kd4io8r84vzRlo=",
834 "path": "../mypackages", 834 "path": "../mypackages",
835 "type": "path" 835 "type": "path"
836 }, 836 },
@@ -847,7 +847,7 @@
847 }, 847 },
848 "locked": { 848 "locked": {
849 "lastModified": 1, 849 "lastModified": 1,
850 "narHash": "sha256-yHJid6Rpxa5pfKI81FfI0VZir9seZMHtLzjdvmt0FVw=", 850 "narHash": "sha256-aOCmHpzzQ3yXa5YrMr54luIYwZAj6Kd4io8r84vzRlo=",
851 "path": "../mypackages", 851 "path": "../mypackages",
852 "type": "path" 852 "type": "path"
853 }, 853 },
@@ -864,7 +864,7 @@
864 }, 864 },
865 "locked": { 865 "locked": {
866 "lastModified": 1, 866 "lastModified": 1,
867 "narHash": "sha256-yHJid6Rpxa5pfKI81FfI0VZir9seZMHtLzjdvmt0FVw=", 867 "narHash": "sha256-aOCmHpzzQ3yXa5YrMr54luIYwZAj6Kd4io8r84vzRlo=",
868 "path": "../mypackages", 868 "path": "../mypackages",
869 "type": "path" 869 "type": "path"
870 }, 870 },
@@ -2153,7 +2153,7 @@
2153 }, 2153 },
2154 "locked": { 2154 "locked": {
2155 "lastModified": 1, 2155 "lastModified": 1,
2156 "narHash": "sha256-5cM87LAHjrWoZRc2QbM6Xu9klzMNBpREjz6sWqp+hFA=", 2156 "narHash": "sha256-Mz6LcYYOO+Le7QLMF0DgHQhxsW2rwlVlOPjQ7qVMPkA=",
2157 "path": "../../flakes/private/system", 2157 "path": "../../flakes/private/system",
2158 "type": "path" 2158 "type": "path"
2159 }, 2159 },
@@ -2206,7 +2206,7 @@
2206 }, 2206 },
2207 "locked": { 2207 "locked": {
2208 "lastModified": 1, 2208 "lastModified": 1,
2209 "narHash": "sha256-2fWHwmMMILe0enrbMMgFoVH+3PysvSx1Oair4W2hgIw=", 2209 "narHash": "sha256-CAHlCHER4gZyTBFePdnwe1Nc4vou7kX32CCswH7R8UE=",
2210 "path": "../../flakes/etherpad-lite", 2210 "path": "../../flakes/etherpad-lite",
2211 "type": "path" 2211 "type": "path"
2212 }, 2212 },
@@ -2248,7 +2248,7 @@
2248 }, 2248 },
2249 "locked": { 2249 "locked": {
2250 "lastModified": 1, 2250 "lastModified": 1,
2251 "narHash": "sha256-emS5jDCcLaK3/Hqk/2p6jQDxZfO1hPicMTblyVBD7EI=", 2251 "narHash": "sha256-vac+qxaNDCm32tPdRs7P8tk1aSAdSMiu5bUBV8qMkjA=",
2252 "path": "../../flakes/grocy", 2252 "path": "../../flakes/grocy",
2253 "type": "path" 2253 "type": "path"
2254 }, 2254 },
@@ -2329,7 +2329,7 @@
2329 }, 2329 },
2330 "locked": { 2330 "locked": {
2331 "lastModified": 1, 2331 "lastModified": 1,
2332 "narHash": "sha256-yHJid6Rpxa5pfKI81FfI0VZir9seZMHtLzjdvmt0FVw=", 2332 "narHash": "sha256-aOCmHpzzQ3yXa5YrMr54luIYwZAj6Kd4io8r84vzRlo=",
2333 "path": "../../flakes/mypackages", 2333 "path": "../../flakes/mypackages",
2334 "type": "path" 2334 "type": "path"
2335 }, 2335 },
@@ -2440,7 +2440,7 @@
2440 }, 2440 },
2441 "locked": { 2441 "locked": {
2442 "lastModified": 1, 2442 "lastModified": 1,
2443 "narHash": "sha256-cR14yn0IbWNe98PAlV+MHO6ClQqeT5HztMeLawldtWs=", 2443 "narHash": "sha256-qslNggHZT+PwW8BuwH4I6SXetJuqwPyu/pIQzfzPJ54=",
2444 "path": "../../flakes/surfer", 2444 "path": "../../flakes/surfer",
2445 "type": "path" 2445 "type": "path"
2446 }, 2446 },
diff --git a/systems/eldiron/websites/mail/default.nix b/systems/eldiron/websites/mail/default.nix
index 0a0342b..e212cd2 100644
--- a/systems/eldiron/websites/mail/default.nix
+++ b/systems/eldiron/websites/mail/default.nix
@@ -111,13 +111,13 @@ in
111 phpOptions = config.services.phpfpm.phpOptions + '' 111 phpOptions = config.services.phpfpm.phpOptions + ''
112 date.timezone = 'CET' 112 date.timezone = 'CET'
113 ''; 113 '';
114 phpPackage = pkgs.php72.withExtensions({ enabled, all }: enabled ++ [ all.imagick all.redis ]); 114 phpPackage = pkgs.php82.withExtensions({ enabled, all }: enabled ++ [ all.imagick all.redis ]);
115 }; 115 };
116 services.phpfpm.pools.rainloop = { 116 services.phpfpm.pools.rainloop = {
117 user = "wwwrun"; 117 user = "wwwrun";
118 group = "wwwrun"; 118 group = "wwwrun";
119 settings = rainloop.phpFpm.pool; 119 settings = rainloop.phpFpm.pool;
120 phpPackage = pkgs.php72.withExtensions({ enabled, all }: enabled ++ [ all.redis ]); 120 phpPackage = pkgs.php82.withExtensions({ enabled, all }: enabled ++ [ all.redis ]);
121 }; 121 };
122 system.activationScripts = { 122 system.activationScripts = {
123 roundcubemail = roundcubemail.activationScript; 123 roundcubemail = roundcubemail.activationScript;
diff --git a/systems/eldiron/websites/mail/roundcubemail.nix b/systems/eldiron/websites/mail/roundcubemail.nix
index 21a10fe..1db6c81 100644
--- a/systems/eldiron/websites/mail/roundcubemail.nix
+++ b/systems/eldiron/websites/mail/roundcubemail.nix
@@ -15,15 +15,16 @@ rec {
15 text = 15 text =
16 let 16 let
17 psql_url = with env.postgresql; "pgsql://${user}:${password}@unix(${socket}:${port})/${database}"; 17 psql_url = with env.postgresql; "pgsql://${user}:${password}@unix(${socket}:${port})/${database}";
18 mysql_postfix_url = with config.myEnv.mail.dovecot.mysql; "mysql://${user}:${password}@unix(${socket})/${database}";
18 in '' 19 in ''
19 <?php 20 <?php
20 $config['db_dsnw'] = '${psql_url}'; 21 $config['db_dsnw'] = '${psql_url}';
21 $config['default_host'] = 'ssl://imap.immae.eu'; 22 $config['imap_host'] = 'ssl://imap.immae.eu';
22 $config['username_domain'] = array( 23 $config['username_domain'] = array(
23 "imap.immae.eu" => "mail.immae.eu" 24 "imap.immae.eu" => "mail.immae.eu"
24 ); 25 );
25 $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false)); 26 $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false));
26 $config['smtp_server'] = 'tls://smtp.immae.eu'; 27 $config['smtp_host'] = 'tls://smtp.immae.eu';
27 $config['smtp_port'] = '587'; 28 $config['smtp_port'] = '587';
28 $config['managesieve_host'] = 'imap.immae.eu'; 29 $config['managesieve_host'] = 'imap.immae.eu';
29 $config['managesieve_port'] = '4190'; 30 $config['managesieve_port'] = '4190';
@@ -49,16 +50,22 @@ rec {
49 'markasjunk', 50 'markasjunk',
50 'managesieve', 51 'managesieve',
51 'newmail_notifier', 52 'newmail_notifier',
53 'reconnect',
52 'vcard_attachments', 54 'vcard_attachments',
53 'zipdownload', 55 'zipdownload',
56 'virtuser_query',
54 57
55 'automatic_addressbook',
56 'message_highlight', 58 'message_highlight',
57 'carddav', 59 'carddav',
60 // Intégré à roundcube 'automatic_addressbook',
58 // Ne marche pas ?: 'ident_switch', 61 // Ne marche pas ?: 'ident_switch',
59 // Ne marche pas ?: 'thunderbird_labels', 62 // Ne marche pas ?: 'thunderbird_labels',
60 ); 63 );
61 64
65 $config['virtuser_query_dsn'] = '${mysql_postfix_url}';
66 $config['virtuser_query'] = array(
67 "user" => "SELECT destination FROM forwardings WHERE ((regex = 1 AND '%m' REGEXP CONCAT('^',source,'$')) OR (regex = 0 AND source = '%m')) AND active = 1"
68 );
62 $config['language'] = 'fr_FR'; 69 $config['language'] = 'fr_FR';
63 70
64 $config['drafts_mbox'] = 'Drafts'; 71 $config['drafts_mbox'] = 'Drafts';