diff options
author | Niklas Hambüchen <mail@nh2.me> | 2024-05-06 03:18:29 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2024-05-06 03:18:29 +0200 |
commit | 7b6b627a6653c5917c74406896575f0a7c138a30 (patch) | |
tree | dced06bca1c31f16aa408b7559d8a2eba30f2fef /nixos/modules | |
parent | 48705e5f4d446e2fc56309cc74cda16ad3d7e7c7 (diff) |
nixos/caddy: Comment why ExecStart is reset
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-servers/caddy/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/caddy/default.nix b/nixos/modules/services/web-servers/caddy/default.nix index 08ce50bff62c0..7faf0e895a433 100644 --- a/nixos/modules/services/web-servers/caddy/default.nix +++ b/nixos/modules/services/web-servers/caddy/default.nix @@ -360,6 +360,7 @@ in serviceConfig = let runOptions = ''--config ${configPath} ${optionalString (cfg.adapter != null) "--adapter ${cfg.adapter}"}''; in { + # Override the `ExecStart` line from upstream's systemd unit file by our own: # https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart= # If the empty string is assigned to this option, the list of commands to start is reset, prior assignments of this option will have no effect. ExecStart = [ "" ''${cfg.package}/bin/caddy run ${runOptions} ${optionalString cfg.resume "--resume"}'' ]; |