Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nixos-healthchecks

nixos-healthchecks provide NixOS-Options to verify if your services are running correctly.

healthchecks.http.nextcloud = {
  url = "https://example.com/login";
  expectedContent = "Login";
};
services.nextcloud = { ... };

Than run

  nix run .#healthchecks

Installation

To use these options, add to your flake inputs:

nixos-healthchecks.url = "github:mrVanDalo/nixos-healthchecks";

and inside the mkFlake:

imports = [
  inputs.nixos-healthchecks.flakeModule
];

Run nix flake lock and you’re set.

Options