aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/tools/vpn/default.nix
blob: 4398a609f53fbb8d0ff0fcdb557f3ee9da825ddf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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";
    };

    services.websites.webappDirs._vpn = ./www;
  };
}