NixOS / infra

NixOS configurations for nixos.org and its servers
MIT License
230 stars 95 forks source link

prometheus-nixos-exporter: add nix 2.19.0 compat #347

Closed mweinelt closed 8 months ago

mweinelt commented 8 months ago

The output of nix path-info --json changed from a list to an object in nix 2.19.0.

Add a simple version detection, so we can support both output formats.

Fixes: #346

vcunat commented 8 months ago

Overall I think this is OK to just deploy and see.

mweinelt commented 8 months ago

Overall I think this is OK to just deploy and see.

Agreed, I just need to bootstrap the VPN on my desktop.