A fast rust tool to check availability of your entire system in caches. It so to speak "checks the weather" before going to update. Heavily inspired by guix weather.
Find a file
Jalil David Salamé Messina 6efdad5e66
All checks were successful
conventional commits / conventional commits (push) Successful in 13s
build / run (push) Successful in 21s
check / run (push) Successful in 1m15s
fix: the small things
* small typo on the flake description
* crane went full lib mode so it doesn't have any inputs to override
* `treefmt` warns on `nixfmt-rfc-style` as its `nixfmt` module is also
  `nixfmt-rfc-style`, switch to the `nixfmt` module.
* `pre-commit-hooks` uses `nixfmt-classic` when requesting `nixfmt` so
  we need to filter out `nixfmt` and enable `nixfmt-rfc-style` manually.
* there was an unneeded with statement warning from `nixd`

Signed-off-by: Jalil David Salame Messina <jalil.salame@gmail.com>
2024-09-11 09:29:02 +02:00
.config fix: the small things 2024-09-11 09:29:02 +02:00
.forgejo fix: use our own forgejo actions repo 2024-09-09 07:50:42 +02:00
.github ci: removed unused cheks, add funding for github 2024-09-05 21:02:09 +02:00
crates fix: actually cache evals 2024-09-08 14:36:18 +02:00
LICENSES docs: readme headers, code of conduct 2024-09-05 08:50:47 +02:00
.envrc feat: flake + lix 2024-09-05 07:32:31 +02:00
.gitignore feat: flake + lix 2024-09-05 07:32:31 +02:00
.rustfmt.toml build: change rust tabwidth 2024-09-06 11:24:30 +02:00
.versionrc build: add convco config with merge type 2024-09-05 10:26:56 +02:00
Cargo.lock chore(release): cargo v0.0.3 2024-09-08 15:21:48 +02:00
Cargo.toml chore(release): cargo v0.0.3 2024-09-08 15:21:48 +02:00
CODE_OF_CONDUCT.md docs: readme headers, code of conduct 2024-09-05 08:50:47 +02:00
CONTRIBUTING.md docs: add CONTRIBUTING.md 2024-09-05 10:07:11 +02:00
deny.toml ci: allow own license 2024-09-07 11:43:47 +02:00
flake.lock build(deps): bump flake.lock 2024-09-06 05:10:38 +02:00
flake.nix fix: the small things 2024-09-11 09:29:02 +02:00
justfile build: add basic changelog gen 2024-09-06 05:08:33 +02:00
LICENSE.txt feat: flake + lix 2024-09-05 07:32:31 +02:00
README.md docs: correct readme h1 2024-09-05 10:11:53 +02:00
REUSE.toml build: add convco config with merge type 2024-09-05 10:26:56 +02:00

Nix Weather - Check Cache Availablility of NixOS Configurations

A fast rust tool to check availability of your entire system in caches. It so to speak "checks the weather" before going to update. Heavily inspired by guix weather.

Built with Nix Contributor Covenant REUSE status License: EUPL-1.2

Usage

Note

Currently, nix-weather only has first-class support for flakes.

General usage would be like this:

nix-weather --name myhost --config ~/git/my-nixos-config

Here, we specify the name of the host, as specified at the flake output nixosConfiguration, and a path to the NixOS configuration flake.

How It Works

The basic idea is that we construct a set of all requisites to build the top-level of a NixOS configuration, and then query Nix cache(s) for the narinfo. By doing this in a high concurrency, parallel task runner (i.e. tokio async runtime), and only querying the headers for status codes, we can reach impressive speeds, typically around 45~ network time.

One of the biggest limiting factors regarding speed is building the config.system.toplevel, and finding the necessary requisites with nix-store. Caching the requisites is a future goal, so that we only have to build the toplevel, and then match against its derivation in cache, which should cut down the nix part of the runtime by ~80%.

Contributing

For information on contributing, please see CONTRIBUTING.md.