From 5c55bcf1c4b270ebc522bb953de038cc7383854a Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 26 May 2026 09:52:46 +0100 Subject: [PATCH] update readme with nix flake instructions --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ce7fa1..07d0540 100644 --- a/README.md +++ b/README.md @@ -46,12 +46,35 @@ cargo install nmrs-gui cargo install --path . ``` -Both install the `nmrs` binary. +### Nix + +#### From source + +`nix run` + +#### Add to your system flake + +```nix +# In flake.nix + +inputs = { + nmrs = { + url = "github:networkmanager-rs/nmrs-gui"; + inputs.nixpkgs.follows = "nixpkgs"; + }; +} + +# In your packages list + +packages = [ + inputs.nmrs.packages.${pkgs.stdenv.hostPlatform.system}.default +]; +``` ## Usage ```bash -nmrs [OPTIONS] +nmrs-gui [OPTIONS] Options: -V, --version Print version and build hash