Valid Nix store path names

From NixOS Wiki

All files and folders in /nix/store match the regular expression

[0-9a-z]{32}-[-.+_?=0-9a-zA-Z]+
  • [0-9a-f]{32} is the hash
  • [-.+_?=0-9a-zA-Z]+ is the name

See also