diff --git a/src/evaluator/modules/jobs/default.nix b/src/evaluator/modules/jobs/default.nix index 9ab38ca4..0a4b329d 100644 --- a/src/evaluator/modules/jobs/default.nix +++ b/src/evaluator/modules/jobs/default.nix @@ -2,7 +2,11 @@ { config, lib, ... }: let makeOutput = name: value: { - inherit name; + name = if lib.strings.hasPrefix "/" name then + name + else + abort + ''The job "${name}" must begin with a slash. Rename it to "/${name}"''; inherit value; }; in {