From 6bb592c6dcd70b164160b6df409eaddb44e06f28 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sat, 14 Mar 2026 21:32:05 +0200 Subject: [PATCH] improve voxtype post-processing config handling --- home/modules/voxtype/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/modules/voxtype/default.nix b/home/modules/voxtype/default.nix index ab7e776..97a3fdb 100644 --- a/home/modules/voxtype/default.nix +++ b/home/modules/voxtype/default.nix @@ -32,6 +32,10 @@ let ''; meta.mainProgram = "voxtype-post-process"; }; + + postProcessingConfig = pkgs.writeText "voxtype-post-processing.json" ( + builtins.toJSON cfg.postProcessing.settings + ); in { options.programs.voxtype = { @@ -83,10 +87,14 @@ in }; config = lib.mkIf cfg.postProcessing.enable { - xdg.configFile."voxtype/post-processing.json".text = builtins.toJSON cfg.postProcessing.settings; + xdg.configFile."voxtype/post-processing.json".source = postProcessingConfig; programs.voxtype.settings.output.post_process = { command = lib.getExe postProcess; timeout_ms = 5 * 60 * 1000; # 5 minutes }; + + systemd.user.services.voxtype.Service.X-Reload-If-Changed = [ + postProcess + ]; }; }