diff --git a/nixos/modules/services/continuous-integration/gitlab-runner.nix b/nixos/modules/services/continuous-integration/gitlab-runner.nix index de2fba2e1d84..07f0524561b2 100644 --- a/nixos/modules/services/continuous-integration/gitlab-runner.nix +++ b/nixos/modules/services/continuous-integration/gitlab-runner.nix @@ -499,21 +499,21 @@ in { ''; }; preGetSourcesScript = mkOption { - type = types.nullOr types.path; + type = types.nullOr (types.either types.str types.path); default = null; description = '' Runner-specific command script executed before code is pulled. ''; }; postGetSourcesScript = mkOption { - type = types.nullOr types.path; + type = types.nullOr (types.either types.str types.path); default = null; description = '' Runner-specific command script executed after code is pulled. ''; }; preBuildScript = mkOption { - type = types.nullOr types.path; + type = types.nullOr (types.either types.str types.path); default = null; description = '' Runner-specific command script executed after code is pulled, @@ -521,7 +521,7 @@ in { ''; }; postBuildScript = mkOption { - type = types.nullOr types.path; + type = types.nullOr (types.either types.str types.path); default = null; description = '' Runner-specific command script executed after code is pulled