summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorV <v@anomalous.eu>2020-10-19 14:25:36 +0200
committerV <v@anomalous.eu>2020-10-19 14:29:48 +0200
commit580f0faa7512f09a7a6fd63282603111a0d48723 (patch)
treed538842a331ee115f826e69d94830adc4d096ff8 /nixos
parent92d4ced442b74f6f040a298490825d0174266f6c (diff)
downloadnixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar.gz
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar.bz2
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar.lz
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar.xz
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.tar.zst
nixpkgs-580f0faa7512f09a7a6fd63282603111a0d48723.zip
nixos/caddy: remove services.caddy.agree
This option is no longer referenced anywhere as of #99371.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-servers/caddy.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/services/web-servers/caddy.nix b/nixos/modules/services/web-servers/caddy.nix
index 72bf9a9a1f4..63ba75e660c 100644
--- a/nixos/modules/services/web-servers/caddy.nix
+++ b/nixos/modules/services/web-servers/caddy.nix
@@ -24,6 +24,10 @@ let
     ${pkgs.jq}/bin/jq -s '.[0] * .[1]' ${adaptedConfig} ${tlsJSON} > $out
   '';
 in {
+  imports = [
+    (mkRemovedOptionModule [ "services" "caddy" "agree" ] "this option is no longer necessary for Caddy 2")
+  ];
+
   options.services.caddy = {
     enable = mkEnableOption "Caddy web server";
 
@@ -66,12 +70,6 @@ in {
       description = "Email address (for Let's Encrypt certificate)";
     };
 
-    agree = mkOption {
-      default = false;
-      type = types.bool;
-      description = "Agree to Let's Encrypt Subscriber Agreement";
-    };
-
     dataDir = mkOption {
       default = "/var/lib/caddy";
       type = types.path;