From a62350be6268995fa3f45b01d0eb5cd7709d7095 Mon Sep 17 00:00:00 2001 From: Wittano Date: Mon, 13 Nov 2023 15:25:52 +0100 Subject: [PATCH] fix(syncthing): problem during installation a fresh NixOS --- modules/services/syncthing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index fa484be2..801320d0 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -15,7 +15,7 @@ in }; }; - config = mkIf cfg.enable { + config = mkIf (cfg.enable && builtins.pathExists config.age.secrets.syncthing.path) { services.syncthing = { enable = true; systemService = true;