diff --git a/system/modules/certspotter.nix b/system/modules/certspotter.nix index 3f53723..a0a54a3 100644 --- a/system/modules/certspotter.nix +++ b/system/modules/certspotter.nix @@ -106,7 +106,7 @@ in { StateDirectory = "certspotter"; }; script = '' - export CERTSPOTTER_STATE_DIR="$STATE_DIR" + export CERTSPOTTER_STATE_DIR="$STATE_DIRECTORY" cd "$CERTSPOTTER_STATE_DIR" ${pkgs.certspotter}/bin/certspotter -sendmail ${cfg.sendmailPath} ${lib.escapeShellArgs cfg.extraFlags} '';