Update Nix instructions

Martin Wimpress 2024-06-28 16:56:45 +01:00
parent a7ee5dbe3b
commit 59b4aaac92
1 changed files with 32 additions and 43 deletions

@ -1,25 +1,10 @@
Quickemu is available in the repositories of the following distros
(packaging status by [Repology.org](https://repology.org/)):
<div align="center">
<table>
<tbody>
<tr valign="top">
<td>
[![Packaging
status of quickemu](https://repology.org/badge/vertical-allrepos/quickemu.svg?header=quickemu)](https://repology.org/project/quickemu/versions)
</td>
</tr>
</tbody>
</table>
</div>
## Arch Linux
Quickemu is available from the AUR (Arch user repository), and can be installed via any AUR helper. Assuming your AUR helper is yay, Run the
following command:
the following command:
``` shell
yay -Sy quickemu
@ -37,7 +22,6 @@ sudo apt-get install ./quickemu_x.y.z-1_all.deb
## Ubuntu
Quickemu is available from a PPA for Ubuntu users.
The Quickemu PPA also includes a backport of QEMU 6.0.0 for 20.04 (Focal) and 21.04 (Hirsute).
To install Quickemu and all the dependencies, run the following in a terminal:
``` shell
@ -46,37 +30,42 @@ sudo apt update
sudo apt install quickemu
```
## NixOS hosts
## Nix & NixOS
To quickly try `quickemu`:
### Flake
``` shell
[![FlakeHub](https://img.shields.io/endpoint?url=https://flakehub.com/f/quickemu-project/quickemu/badge)](https://flakehub.com/flake/quickemu-project/quickemu)
Stable releases of Quickemu are published to FlakeHub for Nix users. See the Quickemu flake on FlakeHub for more details:
- <https://flakehub.com/flake/quickemu-project/quickemu>
### Nixpkgs
Add Quickemu to your `systemPackages`. For example:
```nix
systemPackages = with pkgs; [
quickemu
];
```
### Nix Shell
You can also quickly try `quickemu` in a Nix shell.
#### New command interface
```shell
nix shell nixpkgs#quickemu
```
#### Legacy command interface
```shell
nix-shell -p quickemu
```
To install via Nix profile:
``` shell
nix-env -iA pkgs.quickemu
```
To install via NixOS config:
``` nix
# /etc/nixos/configuration.nix
{pkgs, ...}: {
environment.systemPackages = with pkgs;
quickemu
};
}
```
To install via Flakes:
``` shell
# TODO (flake users, please add an example!)
```
## Any Linux (installing from source)
``` shell