aboutsummaryrefslogblamecommitdiff
path: root/systems/eldiron/websites/vpn/default.nix
blob: ea54691062faedcc5d2226fe01ce2f691553427b (plain) (tree)
1
2
3
4
5
6
7
8
9




                                
                                                                      

                                                  
                                       
                          
      

    
{ lib, pkgs, config,  ... }:
let
  cfg = config.myServices.vpn;
in {
  config = lib.mkIf cfg.enable {
    security.acme.certs.eldiron.extraDomainNames = [ "vpn.immae.eu" ];
    services.websites.env.tools.vhostConfs.vpn = {
      certName    = "eldiron";
      hosts       = [ "vpn.immae.eu" ];
      root        = ./www;
    };
  };
}