{ lib, config, pkgs, ... }: let cfg = config.myServices.websites.librezo.website; varDir = "/var/lib/ftp/librezo/website"; apacheUser = config.services.httpd.Inte.user; apacheGroup = config.services.httpd.Inte.group; in { options.myServices.websites.librezo.website.enable = lib.mkEnableOption "enable Librezo website"; config = lib.mkIf cfg.enable { services.websites.env.integration.vhostConfs.librezo_website = { certName = "librezo"; addToCerts = true; hosts = ["web.librezo.immae.dev"]; root = varDir; extraConfig = [ '' DirectoryIndex index.htm index.html Options Indexes FollowSymLinks MultiViews Includes AllowOverride None Require all granted '' ]; }; }; }