blob: cfe010cbfc56f2d2e582f08904ec542878d9b80e (
plain) (
tree)
|
|
{ lib, pkgs, config, ... }:
let
cfg = config.myServices.vpn;
in {
config = lib.mkIf cfg.enable {
services.websites.env.tools.vhostConfs.vpn = {
certName = "eldiron";
addToCerts = true;
hosts = [ "vpn.immae.eu" ];
root = "/run/current-system/webapps/_vpn";
};
myServices.websites.webappDirs._vpn = ./www;
};
}
|