magika icon indicating copy to clipboard operation
magika copied to clipboard

[Misdetection] Nix file misdetected as hcl or handlebars

Open kachick opened this issue 1 month ago • 1 comments

What should the file have been detected as? What has the file been misdetected as?

Nix code misdetected as following languages

  • HCL(HashiCorp configuration language).
  • handlebars

Using model standard_v3_3

Please link or attach the misdetected file below (Do NOT upload PII!)

  • https://github.com/NixOS/nix-pills/blob/b6c40f872c1d5bb6c9ed8187d1b6faee97614fae/pills/08-generic-builders.md?plain=1#L27-L47
  • https://github.com/NixOS/nixpkgs/blob/683188d2151e552bffcca55bc6538481874a3f11/pkgs/by-name/he/hello/package.nix
  • https://github.com/NixOS/nixpkgs/blob/683188d2151e552bffcca55bc6538481874a3f11/nixos/modules/services/networking/tailscale.nix

Additional context

I couldn't find the entry for the Nix language, but #460 seems to be closed as completed.

kachick avatar Nov 17 '25 17:11 kachick

Thanks! @reyammer, I think we closed #460 by mistake, as I don't see .nix supported in 3_3.

invernizzi avatar Nov 24 '25 10:11 invernizzi