Skip to content

Commit 038d102

Browse files
committed
fix: avoid nix flake config interactive prompts in buildkite
1 parent 76a6801 commit 038d102

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

nix/metal/bitteProfile/buildkite/buildkite-agent-containers.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ in
429429
};
430430
};
431431

432+
# The buildkite host machine will need to be deployed twice before
433+
# the /cache directory will be properly owned since the first deployment
434+
# will have the activation run before the buildkite-agent-iohk user
435+
# exists.
432436
system.activationScripts.cacheDir = {
433437
text = ''
434438
mkdir -p /cache
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
{...}: {
1+
{lib, ...}: {
22
nix = {
3+
# To avoid build problems in containers
34
sandboxPaths = ["/etc/nsswitch.conf" "/etc/protocols"];
5+
6+
# To avoid interactive prompts on flake nix config declarations
7+
extraOptions = lib.mkForce ''
8+
accept-flake-config = true
9+
'';
410
};
511
}

0 commit comments

Comments
 (0)