We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f7f3f5 commit 030d072Copy full SHA for 030d072
nix/cloud/nomadEnvs/cicero/default.nix
@@ -72,14 +72,9 @@
72
if .Type != null and .Type != "batch" then . else (
73
.TaskGroups[]?.Tasks[]? |= (
74
.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
+ if .Config.nix_host then
+ .Env.NIX_CONFIG += "\nextra-substituters = http://cache:7745"
+ else . end
83
)
84
) end
85
0 commit comments