lix/src/nix/ping-store.md
raito b8cb7abcf0 chore: rebrand Nix to Lix when it makes sense
Here's my guide so far:

$ rg '((?!(recursive).*) Nix
(?!(daemon|store|expression|Rocks!|Packages|language|derivation|archive|account|user|sandbox|flake).*))'
-g '!doc/' --pcre2

All items from this query have been tackled. For the documentation side:
that's for #162.

Additionally, all remaining references to github.com/NixOS/nix which
were not relevant were also replaced.

Fixes: #148.
Fixes: #162.
Change-Id: Ib3451fae5cb8ab8cd9ac9e4e4551284ee6794545
Signed-off-by: Raito Bezarius <raito@lix.systems>
2024-06-01 20:31:24 +02:00

721 B

R""(

Examples

  • Test whether connecting to a remote Nix store via SSH works:

    # nix store ping --store ssh://mac1
    
  • Test whether a URL is a valid binary cache:

    # nix store ping --store https://cache.nixos.org
    
  • Test whether the Nix daemon is up and running:

    # nix store ping --store daemon
    

Description

This command tests whether a particular Nix store (specified by the argument --store url) can be accessed. What this means is dependent on the type of the store. For instance, for an SSH store it means that Lix can connect to the specified machine.

If the command succeeds, Lix returns a exit code of 0 and does not print any output.

)""