1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 adminer = pkgs.callPackage ../commons/adminer.nix {};
4 cfg = config.services.myWebsites.Florian;
5 varDir = "/var/lib/ftp/florian";
6 env = myconfig.env.websites.florian;
8 options.services.myWebsites.Florian = {
10 enable = lib.mkEnableOption "enable Florian's website production";
13 enable = lib.mkEnableOption "enable Florian's website integration";
17 config = lib.mkMerge [
18 (lib.mkIf cfg.production.enable {
19 security.acme.certs."ftp".extraDomains."tellesflorian.com" = null;
20 security.acme.certs."florian" = config.services.myCertificates.certConfig // {
21 domain = "tellesflorian.com";
23 "www.tellesflorian.com" = null;
27 services.myWebsites.production.modules = adminer.apache.modules;
28 services.myWebsites.production.vhostConfs.florian = {
30 hosts = [ "tellesflorian.com" "www.tellesflorian.com" ];
31 root = "${varDir}/tellesflorian.com";
33 adminer.apache.vhostConf
35 ServerAdmin ${env.server_admin}
37 <Directory ${varDir}/tellesflorian.com>
38 DirectoryIndex index.php index.htm index.html
39 Options Indexes FollowSymLinks MultiViews Includes
48 (lib.mkIf cfg.integration.enable {
49 security.acme.certs."ftp".extraDomains."florian.immae.eu" = null;
50 security.acme.certs."eldiron".extraDomains."florian.immae.eu" = null;
52 services.myWebsites.integration.modules = adminer.apache.modules;
53 services.myWebsites.integration.vhostConfs.florian = {
55 hosts = [ "florian.immae.eu" ];
56 root = "${varDir}/florian.immae.eu";
58 adminer.apache.vhostConf
60 ServerAdmin ${env.server_admin}
62 <Directory ${varDir}/florian.immae.eu>
63 DirectoryIndex index.php index.htm index.html
64 Options Indexes FollowSymLinks MultiViews Includes