Skip to content

Commit

Permalink
cicero nomad job: add substituter for exec driver to transformer
Browse files Browse the repository at this point in the history
and remove config for nix driver (no longer used)
  • Loading branch information
dermetfan committed Jan 16, 2023
1 parent 2f7f3f5 commit 030d072
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions nix/cloud/nomadEnvs/cicero/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,9 @@
if .Type != null and .Type != "batch" then . else (
.TaskGroups[]?.Tasks[]? |= (
.Vault.Policies += ["cicero"] |
if .Driver != "nix" or .Config?.nixos then . else
.Config.packages |=
# only add bash if needed to avoid conflicts in profile
if any(endswith("#bash") or endswith("#bashInteractive"))
then .
else . + ["github:NixOS/nixpkgs/\($args.nixpkgsRev)#bash"]
end
end
if .Config.nix_host then
.Env.NIX_CONFIG += "\nextra-substituters = http://cache:7745"
else . end
)
) end
)
Expand Down

0 comments on commit 030d072

Please sign in to comment.