Merge pull request #1748 from flexxyfluxx/patch-1

Readme: Clarify and fill in missing information for Nix(OS) install instructions
This commit is contained in:
DeepBlueV7.X 2024-06-16 20:21:56 +00:00 committed by GitHub
commit dbdbb5ef75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,10 +113,38 @@ sudo urpmi nheko
#### Nix(os)
```bash
# Imperatively: (not recommended)
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
# Note: The above command will both install and run Nheko.
# To stop it from running immediately, just remove the `--run nheko` from the end.
```
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)