1 { lib, pkgs, config, myconfig, ... }:
3 adminer = pkgs.callPackage ../commons/adminer.nix {};
4 cfg = config.myServices.websites.florian.integration;
5 varDir = "/var/lib/ftp/florian";
6 env = myconfig.env.websites.florian;
8 options.myServices.websites.florian.integration.enable = lib.mkEnableOption "enable Florian's website integration";
10 config = lib.mkIf cfg.enable {
11 security.acme.certs."ftp".extraDomains."florian.immae.eu" = null;
13 services.websites.env.integration.modules = adminer.apache.modules;
14 services.websites.env.integration.vhostConfs.florian = {
17 hosts = [ "florian.immae.eu" ];
18 root = "${varDir}/florian.immae.eu";
20 adminer.apache.vhostConf
22 ServerAdmin ${env.server_admin}
24 <Directory ${varDir}/florian.immae.eu>
25 DirectoryIndex index.php index.htm index.html
26 Options Indexes FollowSymLinks MultiViews Includes