1 { lib, pkgs, config, ... }:
3 cfg = config.myServices.vpn;
5 config = lib.mkIf cfg.enable {
6 security.acme.certs.eldiron.extraDomainNames = [ "vpn.immae.eu" ];
7 services.websites.env.tools.vhostConfs.vpn = {
9 hosts = [ "vpn.immae.eu" ];
13 Alias /hosts.tar.gz "${config.myServices.vpn.hostsPath}"