summary refs log tree commit diff stats
path: root/system/services/nginx
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 21:29:34 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 21:29:34 +0200
commit9fc5517e14398fed1f0499666eef4962da8a8650 (patch)
tree8b2be8a423d05371331d23f5ebaa06eb7a02c504 /system/services/nginx
parentFix(system): Import everything (diff)
downloadnixos-server-9fc5517e14398fed1f0499666eef4962da8a8650.tar.gz
nixos-server-9fc5517e14398fed1f0499666eef4962da8a8650.zip
Style(system/services/nginx): Use nested attr set for acme options
Diffstat (limited to 'system/services/nginx')
-rw-r--r--system/services/nginx/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix
index 3eb98d3..9a6667f 100644
--- a/system/services/nginx/default.nix
+++ b/system/services/nginx/default.nix
@@ -2,9 +2,13 @@
   imports = [
     ./hosts.nix
   ];
-  security.acme.acceptTerms = true;
-  security.acme.defaults.email = "admin@vhack.eu";
-  security.acme.defaults.webroot = "/srv/acme/";
+  security.acme = {
+    acceptTerms = true;
+    defaults = {
+      email = "admin@vhack.eu";
+      webroot = "/srv/acme/";
+    };
+  };
 
   networking.firewall = {
     allowedTCPPorts = [80 443];