diff --git a/config/services/nginx.nix b/config/services/nginx.nix index 1a11e0a..89c8093 100644 --- a/config/services/nginx.nix +++ b/config/services/nginx.nix @@ -1,4 +1,6 @@ -{ config, lib, ... }: with lib; { +{ config, lib, pkgs, ... }: let + inherit (lib) mkDefault; +in { kyouma.deployment.tags = [ "web" ]; security.dhparams.enable = true; security.dhparams.params.nginx = {}; @@ -11,7 +13,7 @@ }; services.nginx = { enable = true; - #package = pkgs.nginxQuic; + package = mkDefault pkgs.nginxQuic; recommendedGzipSettings = true; recommendedOptimisation = true; diff --git a/modules/nginx/default.nix b/modules/nginx/default.nix index 44b3783..a1744e5 100644 --- a/modules/nginx/default.nix +++ b/modules/nginx/default.nix @@ -12,8 +12,8 @@ extraConfig = (lib.optionalString (builtins.hasAttr "extraConfig" vhostCfg) vhostCfg.extraConfig) + "\n" + extraConfig; forceSSL = true; #kTLS = true; - #http3 = true; - #quic = true; + http3 = true; + quic = true; } // lib.optionalAttrs (!(builtins.hasAttr "useACMEHost" vhostCfg)) { enableACME = true;