juspay / nix-health

REPO MOVED https://github.com/juspay/omnix/tree/main/crates/nix_health
https://github.com/juspay/omnix/tree/main/crates/nix_rs
28 stars 2 forks source link

Trusted users check gives false positive when nix-daemon is not restarted #12

Open srid opened 3 months ago

srid commented 3 months ago

Modifying trusted-users on darwin requires restarting the daemon (sudo pkill nix-daemon). If the user hasn't done this, nix-health will give false positive (green) for trusted-users check.

Looks like we can't rely on nix show-config here. Is there a better way to check for "current" trusted-users?