From c7c38cbac997bd3a7f9e42130053bc669ab5bc62 Mon Sep 17 00:00:00 2001 From: Samuel Shuert Date: Sun, 20 Jul 2025 17:08:39 +0000 Subject: [PATCH] nix: modules/spindle: Fix nix option to match spindle Change-Id: wzyxpsttrxsptmsrsznkzmznunzwlqlz There was a change the environment variables in spindle that were not reflected in this nix module, specifically STEP_TIMEOUT was renamed to WORKFLOW_TIMEOUT, which means that there was no way to set the timeout in the nix module. With the option name being updated, this is a breaking change that will require you to update your nix config if you are using the spindle module. Signed-off-by: Samuel Shuert --- nix/modules/spindle.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/modules/spindle.nix b/nix/modules/spindle.nix index 9bad020..5d45e89 100644 --- a/nix/modules/spindle.nix +++ b/nix/modules/spindle.nix @@ -60,7 +60,7 @@ in description = "Nixery instance to use"; }; - stepTimeout = mkOption { + workflowTimeout = mkOption { type = types.str; default = "5m"; description = "Timeout for each step of a pipeline"; @@ -87,7 +87,7 @@ in "SPINDLE_SERVER_DEV=${lib.boolToString cfg.server.dev}" "SPINDLE_SERVER_OWNER=${cfg.server.owner}" "SPINDLE_PIPELINES_NIXERY=${cfg.pipelines.nixery}" - "SPINDLE_PIPELINES_STEP_TIMEOUT=${cfg.pipelines.stepTimeout}" + "SPINDLE_PIPELINES_WORKFLOW_TIMEOUT=${cfg.pipelines.workflowTimeout}" ]; ExecStart = "${self.packages.${pkgs.system}.spindle}/bin/spindle"; Restart = "always"; -- 2.43.0