]>
Commit | Line | Data |
---|---|---|
1 | { lib, pkgs, config, ... }: | |
2 | let | |
3 | cfg = config.myServices.vpn; | |
4 | in { | |
5 | config = lib.mkIf cfg.enable { | |
6 | security.acme.certs.eldiron.extraDomainNames = [ "vpn.immae.eu" ]; | |
7 | services.websites.env.tools.vhostConfs.vpn = { | |
8 | certName = "eldiron"; | |
9 | hosts = [ "vpn.immae.eu" ]; | |
10 | root = ./www; | |
11 | extraConfig = [ | |
12 | '' | |
13 | Alias /hosts.tar.gz "${config.myServices.vpn.hostsPath}" | |
14 | '' | |
15 | ]; | |
16 | }; | |
17 | }; | |
18 | } |