From 76224149c10ea1e9c4b7fe7edb9baba9cdbeaeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 1 Aug 2025 04:34:49 +0200 Subject: [PATCH] nixos/prosody: fix certs directory missing error Prosody starts without it but not lay false leads for others to debug. --- nixos/modules/services/networking/prosody.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/networking/prosody.nix b/nixos/modules/services/networking/prosody.nix index c270b1465122..b097843c1c9d 100644 --- a/nixos/modules/services/networking/prosody.nix +++ b/nixos/modules/services/networking/prosody.nix @@ -920,6 +920,9 @@ in environment.systemPackages = [ cfg.package ]; + # prevent error if not all certs are configured by the user + environment.etc."prosody/certs/.dummy".text = ""; + environment.etc."prosody/prosody.cfg.lua".source = if cfg.checkConfig then pkgs.runCommandLocal "prosody.cfg.lua"