From 259f1b51b841f57cdeb938141d744a4af68e3015 Mon Sep 17 00:00:00 2001 From: "florian.richer" Date: Sun, 10 Mar 2024 10:49:30 +0100 Subject: [PATCH] Actualiser README.md Signed-off-by: florian.richer --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 42f3e1a..0d8042c 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,37 @@ error: cached failure of attribute 'nixosConfigurations.perso-desktop.config.sys sudo rm -fr /root/.cache/nix/ ``` +## If package is marked as insecure + +Example: + +> error: Package 'nix-2.16.2' in /nix/store/nra828scc8qs92b9pxra5csqzffb6hpl-source/pkgs/tools/package-management/nix/default.nix:229 is marked as insecure, refusing to evaluate. +> +> Known issues: +> - CVE-2024-27297 + +```bash +nix path-info -r /run/current-system | grep nix-2.16.2 +``` +Result: +> [...] +> +> /nix/store/g4ss2h40n3j37bq20x1qw5s7nl82lch5-nix-2.16.2 +> +> [...] + +```bash +nix-store -q --referrers /nix/store/g4ss2h40n3j37bq20x1qw5s7nl82lch5-nix-2.16.2 +``` +Result: +> /nix/store/g4ss2h40n3j37bq20x1qw5s7nl82lch5-nix-2.16.2 +> +> /nix/store/72pfc05339izcwqhlbs8441brrdasas7-nix-2.16.2-dev +> +> /nix/store/ln2z5d5izn8icm3wx94ci13ad19lzjhr-nixd-1.2.3 + +nixd is not up to date and require nix 2.16.2 + # Usefull links - https://api.github.com/rate_limit