mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Improve NixOS install instructions in Readme
This commit is contained in:
parent
7964ea2d5d
commit
b072ba1639
1 changed files with 27 additions and 1 deletions
28
README.md
28
README.md
|
@ -110,10 +110,36 @@ sudo urpmi nheko
|
||||||
#### Nix(os)
|
#### Nix(os)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Imperatively: (not recommended)
|
||||||
nix-env -iA nixpkgs.nheko
|
nix-env -iA nixpkgs.nheko
|
||||||
# or
|
|
||||||
|
# In an ephemeral shell: (recommended if you just want to try it out without committing to a full installation)
|
||||||
nix-shell -p nheko --run nheko
|
nix-shell -p nheko --run nheko
|
||||||
```
|
```
|
||||||
|
Alternatively, add it to your config in one of the following ways: (recommended for long-term installation)
|
||||||
|
|
||||||
|
**System-wide:**
|
||||||
|
```nix
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# ...
|
||||||
|
nheko
|
||||||
|
# ...
|
||||||
|
];
|
||||||
|
```
|
||||||
|
**User-specific:**
|
||||||
|
```nix
|
||||||
|
users.users.<user>.packages = with pkgs; [
|
||||||
|
# ...
|
||||||
|
nheko
|
||||||
|
# ...
|
||||||
|
];
|
||||||
|
```
|
||||||
|
**via `home-manager`:**
|
||||||
|
```nix
|
||||||
|
programs.nheko.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Alpine Linux (and postmarketOS)
|
#### Alpine Linux (and postmarketOS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue