From cc817a8491bbb6eea30533e0c6f89d101a52b72e Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Wed, 18 Sep 2024 08:28:19 +0100 Subject: [PATCH] doc: update getting started Now that nixos-facter is in nixpkgs, it's possible to run it from there as well as the flake. --- .../getting-started/generate-report.md | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/content/getting-started/generate-report.md b/docs/content/getting-started/generate-report.md index fe2fa32..297d80c 100644 --- a/docs/content/getting-started/generate-report.md +++ b/docs/content/getting-started/generate-report.md @@ -2,18 +2,25 @@ To generate a report, you will need to have [Nix] installed on the target machine. -```shell -sudo nix run \ - --option experimental-features "nix-command flakes" \ - --option extra-substituters https://numtide.cachix.org \ - --option extra-trusted-public-keys numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE= \ - github:numtide/nixos-facter -- -o facter.json -``` +=== "Flake" + + ```shell + sudo nix run \ + --option experimental-features "nix-command flakes" \ + --option extra-substituters https://numtide.cachix.org \ + --option extra-trusted-public-keys numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE= \ + github:numtide/nixos-facter -- -o facter.json + ``` + + !!! warning + + The latest report output from `main` may be incompatible. Run from [nixpkgs] to ensure a stable report output. -!!! note +=== "Nixpkgs" - In the near-future we will add [nixos-facter] to [nixpkgs]. Until then, we recommend using the [Numtide Binary Cache] - to avoid having to build everything from scratch. + ```shell + sudo nix run nixpkgs#nixos-facter -- -o facter.json + ``` This will scan your system and produce a JSON-based report in a file named `facter.json`: