Skip to content

feat: add Nix flake support#283

Merged
stabldev merged 8 commits intostabldev:mainfrom
leomeowqq:feature/nix-flake-support
May 8, 2026
Merged

feat: add Nix flake support#283
stabldev merged 8 commits intostabldev:mainfrom
leomeowqq:feature/nix-flake-support

Conversation

@leomeowqq
Copy link
Copy Markdown
Contributor

Adds a minimal Nix flake so torrra can be used on NixOS without manual building.

Closes discussion #49.

What's included

  • flake.nix - standard flake with packages, overlay, and NixOS module
  • package.nix - buildGoModule derivation for torrra

Usage after merge

# run directly
nix run github:stabldev/torrra

Or add to your NixOS configuration:

# In flake.nix inputs
torrra.url = "github:stabldev/torrra";

# In your NixOS configuration
environment.systemPackages = [ inputs.torrra.packages.${pkgs.system}.default ];

Tested on NixOS (x86_64-linux).

Copy link
Copy Markdown
Owner

@stabldev stabldev left a comment

Choose a reason for hiding this comment

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

hey @leoxyeo
thank you for this PR. looks good, just one thing- can you move the nix installation guide to this docs file: https://github.com/stabldev/torrra/edit/main/docs/installation.md

@leomeowqq
Copy link
Copy Markdown
Contributor Author

hey @leoxyeo
thank you for this PR. looks good, just one thing- can you move the nix installation guide to this docs file: https://github.com/stabldev/torrra/edit/main/docs/installation.md

sure I can :) no problem, give me a minute

Copy link
Copy Markdown
Owner

@stabldev stabldev left a comment

Choose a reason for hiding this comment

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

thank you @leomeowqq !
merging...

@stabldev stabldev merged commit cf865db into stabldev:main May 8, 2026
6 checks passed
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.

2 participants