1 { lib, pkgs, config, ... }:
4 root = pkgs.webapps.infcloud;
6 Alias /carddavmate ${root}
7 Alias /caldavzap ${root}
8 Alias /infcloud ${root}
11 Options FollowSymlinks
13 DirectoryIndex index.html
17 davical = pkgs.callPackage ./davical.nix {
18 env = config.myEnv.tools.davical;
19 inherit (pkgs.webapps) davical awl;
23 cfg = config.myServices.websites.tools.dav;
25 options.myServices.websites.tools.dav = {
26 enable = lib.mkEnableOption "enable dav website";
29 config = lib.mkIf cfg.enable {
30 myServices.chatonsProperties.services = {
32 file.datetime = "2022-08-21T01:33:00";
35 description = "DAViCal is a server for calendar sharing";
36 website = "https://dav.immae.eu";
37 logo = "https://www.davical.org/images/logo.gif";
39 status.description = "OK";
40 registration."" = ["MEMBER" "CLIENT"];
41 registration.load = "OPEN";
42 install.type = "PACKAGE";
46 website = "https://www.davical.org/";
47 license.url = "https://gitlab.com/davical-project/davical/-/blob/master/COPYING";
48 license.name = "GNU General Public License Version 2";
49 version = pkgs.webapps.davical.version;
50 source.url = "https://gitlab.com/davical-project/davical/";
55 # file.datetime = "2022-08-22T00:00:00";
58 # description = "Opensource CalDAV web client";
59 # website = "https://dav.immae.eu/caldavzap/";
60 # logo = "https://dav.immae.eu/caldavzap/images/infcloud_logo.svg";
61 # status.level = "OK";
62 # status.description = "OK";
63 # registration."" = ["MEMBER" "CLIENT"];
64 # registration.load = "OPEN";
65 # install.type = "PACKAGE";
69 # website = "https://inf-it.com/open-source/clients/infcloud/";
70 # license.url = "https://www.gnu.org/licenses/agpl-3.0.en.html";
71 # license.name = "GNU Affero General Public License (version 3.0)";
72 # version = pkgs.webapps.infcloud.version;
73 # source.url = "https://inf-it.com/open-source/clients/infcloud/";
77 # file.datetime = "2022-08-22T00:00:00";
80 # description = "Opensource Carddav web client";
81 # website = "https://dav.immae.eu/carddavmate/";
82 # logo = "https://dav.immae.eu/caldavzap/images/infcloud_logo.svg";
83 # status.level = "OK";
84 # status.description = "OK";
85 # registration."" = ["MEMBER" "CLIENT"];
86 # registration.load = "OPEN";
87 # install.type = "PACKAGE";
91 # website = "https://inf-it.com/open-source/clients/infcloud/";
92 # license.url = "https://www.gnu.org/licenses/agpl-3.0.en.html";
93 # license.name = "GNU Affero General Public License (version 3.0)";
94 # version = pkgs.webapps.infcloud.version;
95 # source.url = "https://inf-it.com/open-source/clients/infcloud/";
99 secrets.keys = davical.keys;
100 services.websites.env.tools.modules = davical.apache.modules;
102 services.websites.env.tools.vhostConfs.dav = {
103 certName = "eldiron";
105 hosts = ["dav.immae.eu" ];
109 (davical.apache.vhostConf config.services.phpfpm.pools.davical.socket)
113 services.phpfpm.pools = {
115 user = config.services.httpd.Tools.user;
116 group = config.services.httpd.Tools.group;
117 settings = davical.phpFpm.pool;
118 phpPackage = pkgs.php72.withExtensions({ enabled, all }: enabled ++ [all.redis]);