diff options
Diffstat (limited to 'virtual/modules/websites/aten.nix')
-rw-r--r-- | virtual/modules/websites/aten.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/virtual/modules/websites/aten.nix b/virtual/modules/websites/aten.nix new file mode 100644 index 0000000..7567289 --- /dev/null +++ b/virtual/modules/websites/aten.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | { lib, pkgs, config, mylibs, ... }: | ||
2 | let | ||
3 | cfg = config.services.myWebsites.Aten; | ||
4 | in { | ||
5 | options.services.myWebsites.Aten = { | ||
6 | production = { | ||
7 | enable = lib.mkEnableOption "enable Aten's website in production"; | ||
8 | }; | ||
9 | integration = { | ||
10 | enable = lib.mkEnableOption "enable Aten's website in integration"; | ||
11 | }; | ||
12 | }; | ||
13 | |||
14 | config = lib.mkMerge [ | ||
15 | (lib.mkIf cfg.production.enable { | ||
16 | security.acme.certs."aten" = config.services.myCertificates.certConfig // { | ||
17 | domain = "aten.pro"; | ||
18 | extraDomains = { | ||
19 | "www.aten.pro" = null; | ||
20 | }; | ||
21 | }; | ||
22 | }) | ||
23 | (lib.mkIf cfg.integration.enable { | ||
24 | security.acme.certs."eldiron".extraDomains."dev.aten.pro" = null; | ||
25 | }) | ||
26 | ]; | ||
27 | } | ||
28 | |||