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 Quickemu is available in the repositories of the following distros
(packaging status by [Repology.org](https://repology.org/)): (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 ## 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 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 ``` shell
yay -Sy quickemu yay -Sy quickemu
@ -37,7 +22,6 @@ sudo apt-get install ./quickemu_x.y.z-1_all.deb
## Ubuntu ## Ubuntu
Quickemu is available from a PPA for Ubuntu users. 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: To install Quickemu and all the dependencies, run the following in a terminal:
``` shell ``` shell
@ -46,35 +30,40 @@ sudo apt update
sudo apt install quickemu 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)
nix-shell -p quickemu
```
To install via Nix profile: Stable releases of Quickemu are published to FlakeHub for Nix users. See the Quickemu flake on FlakeHub for more details:
``` shell - <https://flakehub.com/flake/quickemu-project/quickemu>
nix-env -iA pkgs.quickemu
```
To install via NixOS config: ### Nixpkgs
``` nix Add Quickemu to your `systemPackages`. For example:
# /etc/nixos/configuration.nix
{pkgs, ...}: { ```nix
environment.systemPackages = with pkgs; systemPackages = with pkgs; [
quickemu quickemu
}; ];
}
``` ```
To install via Flakes: ### Nix Shell
``` shell You can also quickly try `quickemu` in a Nix shell.
# TODO (flake users, please add an example!)
#### New command interface
```shell
nix shell nixpkgs#quickemu
```
#### Legacy command interface
```shell
nix-shell -p quickemu
``` ```
## Any Linux (installing from source) ## Any Linux (installing from source)