chore: add nix flake for Linux

* nix: init 1.0.0-unstable rev 6902733

* nix: add install instructions

* nix: update 1.0.0 -> 1.1.1
This commit is contained in:
Dennis
2026-06-30 16:23:25 -04:00
committed by GitHub
parent 3c5b5597d9
commit 61bbb4b219
4 changed files with 166 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# Flake install
Add this repo to your ```flake.nix```. The package is built using the unstable channel. You can overwrite this by setting ```inputs.nixpkgs.follows = "nixpkgs"``` (if your default is 26.05).
**The binary is executed as ```torlnk```.**
```nix
inputs = {
...
torlink.url = "github:baairon/torlink";
...
}
```
You can install the package in either home.nix or your configuration.nix depending on your preference.
**User**
```nix
# home.nix
{ pkgs, inputs, ... }:
{
home.packages = with pkgs; [
...
inputs.torlink.packages.${pkgs.system}.default
...
];
}
```
**System**
```nix
# configuration.nix
{ pkgs, inputs, ... }:
{
environment.systemPackages = with pkgs; [
...
inputs.torlink.packages.${pkgs.system}.default
...
];
}
```