]>
Commit | Line | Data |
---|---|---|
1 | { lib, pkgs, config, mylibs, ... }: | |
2 | let | |
3 | cfg = config.services.myWebsites.Ludivine; | |
4 | in { | |
5 | options.services.myWebsites.Ludivine = { | |
6 | production = { | |
7 | enable = lib.mkEnableOption "enable Ludivine's website in production"; | |
8 | }; | |
9 | integration = { | |
10 | enable = lib.mkEnableOption "enable Ludivine's website in integration"; | |
11 | }; | |
12 | }; | |
13 | ||
14 | config = lib.mkMerge [ | |
15 | (lib.mkIf cfg.production.enable { | |
16 | security.acme.certs."ludivinecassal" = config.services.myCertificates.certConfig // { | |
17 | domain = "ludivinecassal.com"; | |
18 | extraDomains = { | |
19 | "www.ludivinecassal.com" = null; | |
20 | }; | |
21 | }; | |
22 | }) | |
23 | (lib.mkIf cfg.integration.enable { | |
24 | security.acme.certs."eldiron".extraDomains."ludivine.immae.eu" = null; | |
25 | }) | |
26 | ]; | |
27 | } |