Skip to content

Commit

Permalink
nixos/buildkite-agent: put each agent in its own private /tmp
Browse files Browse the repository at this point in the history
Workaround for buildkite/agent#2916, but
probably still a good idea.
  • Loading branch information
flokli committed Aug 2, 2024
1 parent e23f5d0 commit ae6e20e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@
- `nix.channel.enable = false` no longer implies `nix.settings.nix-path = []`.
Since Nix 2.13, a `nix-path` set in `nix.conf` cannot be overriden by the `NIX_PATH` configuration variable.

- Buildkite Agents are now each running in their own private `/tmp`.
To return to the old behaviour, set `systemd.services.buildkite-agent-${name}.serviceConfig.PrivateTmp = false;`.

## Detailed migration information {#sec-release-24.11-migration}

### `sound` options removal {#sec-release-24.11-migration-sound}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ in
serviceConfig = {
ExecStart = "${cfg.package}/bin/buildkite-agent start --config ${cfg.dataDir}/buildkite-agent.cfg";
User = "buildkite-agent-${name}";
# Workaround https://github.com/buildkite/agent/issues/2916
PrivateTmp = lib.mkDefault true;
RestartSec = 5;
Restart = "on-failure";
TimeoutSec = 10;
Expand Down

0 comments on commit ae6e20e

Please sign in to comment.