diff options
Diffstat (limited to 'virtual/modules/websites/ludivine.nix')
-rw-r--r-- | virtual/modules/websites/ludivine.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/virtual/modules/websites/ludivine.nix b/virtual/modules/websites/ludivine.nix new file mode 100644 index 0000000..5729c09 --- /dev/null +++ b/virtual/modules/websites/ludivine.nix | |||
@@ -0,0 +1,27 @@ | |||
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 | } | ||