Skip to content

Commit 030d072

Browse files
committed
cicero nomad job: add substituter for exec driver to transformer
and remove config for nix driver (no longer used)
1 parent 2f7f3f5 commit 030d072

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

nix/cloud/nomadEnvs/cicero/default.nix

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,9 @@
7272
if .Type != null and .Type != "batch" then . else (
7373
.TaskGroups[]?.Tasks[]? |= (
7474
.Vault.Policies += ["cicero"] |
75-
if .Driver != "nix" or .Config?.nixos then . else
76-
.Config.packages |=
77-
# only add bash if needed to avoid conflicts in profile
78-
if any(endswith("#bash") or endswith("#bashInteractive"))
79-
then .
80-
else . + ["github:NixOS/nixpkgs/\($args.nixpkgsRev)#bash"]
81-
end
82-
end
75+
if .Config.nix_host then
76+
.Env.NIX_CONFIG += "\nextra-substituters = http://cache:7745"
77+
else . end
8378
)
8479
) end
8580
)

0 commit comments

Comments
 (0)