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.