From 321907e5cb1095551804d7ac63f884cbc145639c Mon Sep 17 00:00:00 2001 From: budimanjojo Date: Fri, 26 Jun 2026 11:05:34 +0700 Subject: [PATCH] fix: `env` can also be bool Not documented in GitHub docs, but it's well known that you can use boolean value for `env` field Signed-off-by: budimanjojo --- modules/types/job.nix | 2 +- modules/types/step.nix | 2 +- modules/types/workflow.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/types/job.nix b/modules/types/job.nix index 2e645f6..7ef1667 100644 --- a/modules/types/job.nix +++ b/modules/types/job.nix @@ -287,7 +287,7 @@ in rec { }; env = mkOption { - type = types.nullOr (types.attrsOf types.str); + type = types.nullOr (types.attrsOf (types.either types.str types.bool)); default = null; description = '' Environment variables for all steps in the job. diff --git a/modules/types/step.nix b/modules/types/step.nix index b68b35a..dd1d4b7 100644 --- a/modules/types/step.nix +++ b/modules/types/step.nix @@ -86,7 +86,7 @@ in { }; env = mkOption { - type = types.nullOr (types.attrsOf types.str); + type = types.nullOr (types.attrsOf (types.either types.str types.bool)); default = null; description = '' Environment variables for the step. diff --git a/modules/types/workflow.nix b/modules/types/workflow.nix index 539f731..a9171af 100644 --- a/modules/types/workflow.nix +++ b/modules/types/workflow.nix @@ -44,7 +44,7 @@ in { }; env = mkOption { - type = types.nullOr (types.attrsOf types.str); + type = types.nullOr (types.attrsOf (types.either types.str types.bool)); default = null; description = '' Environment variables for all jobs in the workflow. @@ -115,7 +115,7 @@ in { }; env = mkOption { - type = types.nullOr (types.attrsOf types.str); + type = types.nullOr (types.attrsOf (types.either types.str types.bool)); default = null; description = "Default environment variables for all jobs."; example = {