{ lib, pkgs, config, ... }: let cfg = config.myServices.websites.immae.temp; varDir = "/var/lib/ftp/temp.immae.eu"; env = config.myEnv.websites.temp; in { options.myServices.websites.immae.temp.enable = lib.mkEnableOption "enable Temp' website"; config = lib.mkIf cfg.enable { services.websites.env.production.modules = [ "headers" ]; services.websites.env.production.vhostConfs.immae_temp = { certName = "immae"; addToCerts = true; hosts = [ "temp.immae.eu" ]; root = varDir; extraConfig = [ '' Use Apaxy "${varDir}" "title .duplicity-ignore" Options -Indexes AllowOverride None Require all granted Options Indexes '' ]; }; }; }