Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix_health: Flake-specific health checks #60

Closed
1 of 3 tasks
Tracked by #14
srid opened this issue Sep 11, 2023 · 3 comments
Closed
1 of 3 tasks
Tracked by #14

nix_health: Flake-specific health checks #60

srid opened this issue Sep 11, 2023 · 3 comments
Assignees

Comments

@srid
Copy link
Member

srid commented Sep 11, 2023

Each flake can export the metadata (as https://github.com/DeterminateSystems/flake-schemas?) for nix_health do checks on. This includes:

{
  flake.nix-health.default.checks = {
    caches.required = [ "nammyatri.cachix.org" ];
    direnv.enable = true;
  };
}

Some of these checks (like direnv) will require a specific flake to check against. In the case of direnv, it would also have to be a local path flake.

@srid srid changed the title Flake-specific health checks nix_health: Flake-specific health checks Sep 11, 2023
@shivaraj-bh
Copy link
Member

Regarding direnv health check, this is how I did it in nushell: https://github.com/shivaraj-bh/nix-health/blob/8de00ad118a14f3d3d1b75f296697cb7f9012a26/nix-health.nu#L77-L97

@srid srid mentioned this issue Sep 13, 2023
8 tasks
@srid srid self-assigned this Sep 14, 2023
@srid
Copy link
Member Author

srid commented Sep 15, 2023

With #67 we can now configure nix-health behaviour in the project flake as follows:

image

@srid
Copy link
Member Author

srid commented Sep 15, 2023

This is architecturally in place. #14 will track the specific checks.

@srid srid closed this as completed Sep 15, 2023
@srid srid added the nix-health label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants