aboutsummaryrefslogblamecommitdiff
path: root/modules/private/websites/tools/vpn/default.nix
blob: cfe010cbfc56f2d2e582f08904ec542878d9b80e (plain) (tree)
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";
    };

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