A NixOS Package and Module that exposes the Bitbucket Runner as a Systemd Service via Nix.
- Add the following to your flake.nix inputs:
bitbucket-runner-nix.url = "github:kashw2/bitbucket-runner-nix";
- Add the following to your flake.nix's nixosConfiguration configuration module:
bitbucket-runner-nix.nixosModules.bitbucket-runner;
- Add the following to your configuration.nix:
services.bitbucket-runner = {
enable = true;
flags = {
accountUuid = "YOUR UUID";
repositoryUuid = "YOUR REPOSITORY UUID";
runnerUuid = "YOUR RUNNER UUID";
OAuthClientId = "YOUR OAUTH CLIENT ID";
OAuthClientSecret = "YOUR OAUTH CLIENT SECRET";
};
};
nix shell github:kashw2/bitbucket-runner-nix#bitbucket-runner \
-c sh \
-c "bitbucket-runner-linux-shell \
--accountUuid A \
--runnerUuid B \
--OAuthClientId C \
--OAuthClientSecret D \
--workingDirectory E \
--runtime linux-shell"