https://github.com/zombiezen/terraform-google-nix-cache
A Terraform module to create a Google Cloud Storage (GCS) bucket that can be used as a Nix binary cache.
https://github.com/zombiezen/terraform-google-nix-cache
nix terraform
Last synced: 12 months ago
JSON representation
A Terraform module to create a Google Cloud Storage (GCS) bucket that can be used as a Nix binary cache.
- Host: GitHub
- URL: https://github.com/zombiezen/terraform-google-nix-cache
- Owner: zombiezen
- License: apache-2.0
- Created: 2023-03-05T03:42:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T00:37:22.000Z (over 2 years ago)
- Last Synced: 2025-04-03T12:52:11.364Z (over 1 year ago)
- Topics: nix, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/zombiezen/nix-cache/google/latest
- Size: 16.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Terraform for Nix Cache backed by Google Cloud Storage
This is a Terraform module to create a Google Cloud Storage (GCS) bucket
that can be used as a [Nix binary cache](https://nixos.org/manual/nix/stable/package-management/s3-substituter.html).
## Example
```terraform
terraform {
required_version = "~> 1.0"
}
provider "google" {
project = "PROJECTID"
}
module "nix_cache" {
source = "zombiezen/nix-cache/google"
version = "0.2.1"
bucket_name = "BUCKETNAME"
bucket_location = "us"
# Optional:
service_account_email = google_service_account.github_actions.email
service_account_project = google_service_account.github_actions.project
}
# Optional:
resource "google_service_account" "github_actions" {
account_id = "github"
display_name = "GitHub Actions"
description = "GitHub Actions runners"
}
```
## License
[Apache 2.0](LICENSE)