aboutsummaryrefslogtreecommitdiff
path: root/virtual/modules/websites/ludivine/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'virtual/modules/websites/ludivine/default.nix')
-rw-r--r--virtual/modules/websites/ludivine/default.nix64
1 files changed, 0 insertions, 64 deletions
diff --git a/virtual/modules/websites/ludivine/default.nix b/virtual/modules/websites/ludivine/default.nix
deleted file mode 100644
index d13d700..0000000
--- a/virtual/modules/websites/ludivine/default.nix
+++ /dev/null
@@ -1,64 +0,0 @@
1{ lib, pkgs, config, myconfig, mylibs, ... }:
2let
3 ludivinecassal = pkgs.callPackage ./ludivinecassal.nix { inherit (mylibs) fetchedGitPrivate; };
4 ludivinecassal_dev = ludivinecassal {
5 config = myconfig.env.websites.ludivinecassal.integration;
6 };
7 ludivinecassal_prod = ludivinecassal {
8 config = myconfig.env.websites.ludivinecassal.production;
9 };
10
11 cfg = config.services.myWebsites.Ludivine;
12in {
13 options.services.myWebsites.Ludivine = {
14 production = {
15 enable = lib.mkEnableOption "enable Ludivine's website in production";
16 };
17 integration = {
18 enable = lib.mkEnableOption "enable Ludivine's website in integration";
19 };
20 };
21
22 config = lib.mkMerge [
23 (lib.mkIf cfg.production.enable {
24 services.myWebsites.commons.stats.enable = true;
25 services.myWebsites.commons.stats.sites = [
26 {
27 name = "ludivinecassal.com";
28 conf = ./goaccess.conf;
29 }
30 ];
31
32 security.acme.certs."ludivinecassal" = config.services.myCertificates.certConfig // {
33 domain = "ludivinecassal.com";
34 extraDomains = {
35 "www.ludivinecassal.com" = null;
36 };
37 };
38
39 services.myPhpfpm.poolConfigs.ludivinecassal_prod = ludivinecassal_prod.phpFpm.pool;
40 system.activationScripts.ludivinecassal_prod = ludivinecassal_prod.activationScript;
41 services.myWebsites.production.modules = ludivinecassal_prod.apache.modules;
42 services.myWebsites.production.vhostConfs.ludivine = {
43 certName = "ludivinecassal";
44 hosts = ["ludivinecassal.com" "www.ludivinecassal.com" ];
45 root = ludivinecassal_prod.webRoot;
46 extraConfig = [ ludivinecassal_prod.apache.vhostConf ];
47 };
48 })
49 (lib.mkIf cfg.integration.enable {
50 security.acme.certs."eldiron".extraDomains."ludivine.immae.eu" = null;
51
52 services.myPhpfpm.poolConfigs.ludivinecassal_dev = ludivinecassal_dev.phpFpm.pool;
53 system.activationScripts.ludivinecassal_dev = ludivinecassal_dev.activationScript;
54 services.myWebsites.apacheConfig.ludivinecassal_dev.modules = ludivinecassal_dev.apache.modules;
55 services.myWebsites.integration.modules = ludivinecassal_dev.apache.modules;
56 services.myWebsites.integration.vhostConfs.ludivine = {
57 certName = "eldiron";
58 hosts = [ "ludivine.immae.eu" ];
59 root = ludivinecassal_dev.webRoot;
60 extraConfig = [ ludivinecassal_dev.apache.vhostConf ];
61 };
62 })
63 ];
64}