]>
Commit | Line | Data |
---|---|---|
1 | { lib, pkgs, config, ... }: | |
2 | let | |
3 | cfg = config.myServices.websites.noctambules.cloud; | |
4 | in { | |
5 | options.myServices.websites.noctambules.cloud.enable = lib.mkEnableOption "enable Noctambules’s cloud"; | |
6 | ||
7 | config = lib.mkIf cfg.enable { | |
8 | myServices.tools.cloud.farm.instances.noctambules = { | |
9 | nextcloud = pkgs.webapps.nextcloud_23; | |
10 | apps = a: [ a.calendar a.deck a.tasks ]; | |
11 | }; | |
12 | services.websites.env.production.modules = [ "proxy_fcgi" ]; | |
13 | services.websites.env.production.vhostConfs.noctambules = { | |
14 | certName = "noctambules"; | |
15 | certMainHost = "cloud.les-noctambules.com"; | |
16 | addToCerts = true; | |
17 | hosts = ["cloud.les-noctambules.com"]; | |
18 | root = config.myServices.tools.cloud.farm.rootDirs.noctambules; | |
19 | extraConfig = [ | |
20 | config.myServices.tools.cloud.farm.vhosts.noctambules | |
21 | ]; | |
22 | }; | |
23 | }; | |
24 | } | |
25 |