docs: add install instructions for nixpkgs (#2401)

* docs: add install instructions for nixpkgs

I also included the link to the package in NixOS Search btw.

* docs: remove nixos config notes per https://github.com/lapce/lapce/pull/2401#discussion_r1202429461
This commit is contained in:
Andrei Jiroh Halili 2023-05-26 02:17:04 +08:00 committed by GitHub
parent e7f9261942
commit de86af3a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -45,6 +45,25 @@ emerge app-editors/lapce
brew install lapce
```
### nixpkgs
You can find the packages [here](https://search.nixos.org/packages?channel=unstable&show=lapce&from=0&size=50&sort=relevance&type=packages&query=lapce):
```bash
# try with nix-shell
nix-shell -p lapce
# on NixOS
nix-env -iA nixos.lapce
# on non-NixOS installs, including macOS
nix-env -iA nixpkgs.lapce
# only if nix.settings.experimental-features is set to both "nix-command" and "flakes"
# WARNING: THIS BREAKS nix-env, PROCEED AT YOUR OWN RISK. THIS ALSO INSTALLS FROM UNSTABLE BRANCH.
nix profile install nixpkgs#hello
```
### Scoop
```bash