Skip to content

chore: add nix flake for reproducible dev environment#695

Merged
tembleking merged 1 commit intomasterfrom
chore/nix-flake-dev-environment
Feb 6, 2026
Merged

chore: add nix flake for reproducible dev environment#695
tembleking merged 1 commit intomasterfrom
chore/nix-flake-dev-environment

Conversation

@tembleking
Copy link
Copy Markdown
Member

Summary

  • Add Nix flake configuration for reproducible development environment
  • Include all required tools: go, terraform, goreleaser, golangci-lint, gofumpt, pre-commit, etc.
  • Update .envrc to automatically use the flake when nix is available
  • Remove testacc from pre-commit hooks (too slow for local commits)

Test plan

  • Run nix develop and verify all tools are available
  • Run direnv allow and verify environment loads correctly
  • Run git commit and verify pre-commit hooks pass

Add Nix flake configuration to provide a reproducible development
environment with all required tools (go, terraform, goreleaser,
golangci-lint, gofumpt, pre-commit, etc.).

Update .envrc to automatically use the flake when nix is available.
Remove testacc from pre-commit hooks (too slow for commits).
@tembleking tembleking requested a review from a team as a code owner February 5, 2026 16:18
Copilot AI review requested due to automatic review settings February 5, 2026 16:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Nix flake configuration to enable reproducible development environments for the project. The changes streamline the developer experience by automating tool installation and environment setup through Nix, while also improving pre-commit hook performance by removing slow acceptance tests.

Changes:

  • Added Nix flake configuration with all required development tools (Go, Terraform, goreleaser, linters, etc.)
  • Updated .envrc to automatically use the Nix flake when available
  • Removed slow testacc hook from pre-commit configuration

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
flake.nix New Nix flake defining reproducible dev environment with all necessary tools
.envrc Modified to load Nix flake before other configuration
.pre-commit-config.yaml Removed testacc hook to improve commit performance
sysdig/resource_sysdig_secure_cloud_auth_account_test.go Removed extraneous blank line

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .envrc
Copy link
Copy Markdown

@alecron alecron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good to Nix

@tembleking tembleking added this pull request to the merge queue Feb 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 5, 2026
@tembleking tembleking added this pull request to the merge queue Feb 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 5, 2026
@tembleking tembleking merged commit 2e62d1f into master Feb 6, 2026
167 checks passed
@tembleking tembleking deleted the chore/nix-flake-dev-environment branch February 6, 2026 08:27
fcracker79 pushed a commit that referenced this pull request Mar 5, 2026
- Add Nix flake configuration for reproducible development environment
- Include all required tools: go, terraform, goreleaser, golangci-lint,
gofumpt, pre-commit, etc.
- Update `.envrc` to automatically use the flake when nix is available
- Remove `testacc` from pre-commit hooks (too slow for local commits)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants