add nix documentation

This commit is contained in:
Julian 2023-04-28 15:06:39 -04:00
parent 4add9bcc8d
commit 3d63b02e8d
Signed by: NotNite
GPG Key ID: BD91A5402CCEB08A
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ export U_REVOCATION_KEY_PATH="$HOME/.u_revocation_keys"
./upload.sh /path/to/file
```
## setup (nix)
u has a nix flake you can use - just add `u.url = "git+https://git.n2.pm/NotNite/u.git";`. both the server (`u`) and client (`u-upload`) are available as packages.
you can also use the NixOS module (`u.nixosModule`) and enable `services.u`.
## using u
examples are with curl - you can (obviously) use any HTTP client.