nix3-store-add-path(1)

πŸ’– nix3-store-add-path(1) πŸ’–

okay so bestie, welcome to the General Commands Manual ✨ this is section 1, page nix3-store-add-path(1), and we're about to get into it.

⚠️ Warning ⚠️ this program is experimental and its interface is subject to change. i'm not kidding, the vibes are literally "we might rearrange the furniture while ur standing in the room". proceed with awareness 🫢

🌸 Name 🌸

nix store add-path β€” it's a deprecated alias to nix store add. she's the older sister who still shows up to the party but everyone knows the new one is the main character now. πŸ’…


✨ Synopsis ✨

nix store add-path [option…] path

πŸŽ€ Options πŸŽ€

  • --dry-run β€” manifest it without committing to it, bestie. it shows u what this command would do, and then just… doesn't do it. window shopping energy πŸ›οΈ
  • --hash-algo hash-algo β€” picks the hash algorithm. ur choices are blake3, md5, sha1, sha256, or sha512. pick ur fighter βš”οΈ
  • --mode content-address-method β€” how we compute the content-address of the store object. it's giving "choose ur own adventure", and the options are:
    • nar (this is the default) β€” serialises the input as a Nix Archive and hands that to the hash function. the classic, the icon, the default for a reason πŸ’–
    • flat β€” assumes the input is a single file and passes it straight to the hash function. no packaging, just vibes, direct deposit πŸ“
    • text β€” like flat, but it's for derivations serialized in store object and builtins.toFile. for advanced use-cases only ⭐ for regular usage u want nar and flat, fr fr. don't be doing the advanced thing just because it looks cool, i know u, i love u, but no πŸ™ˆ
  • --name / -n name β€” overrides the name component of the store path. it defaults to the base name of path. so like, u can rename her πŸ’… she's still her, just with a new name tag

  • --debug β€” sets the logging verbosity level to β€˜debug’. every little detail, she's telling u everything πŸ—£οΈ
  • --log-format format β€” sets the format of log output. one of raw, internal-json, bar or bar-with-logs. pick the aesthetic that matches ur terminal setup bestie ✨
  • --print-build-logs / -L β€” prints full build logs on standard error. full tea, no filtering β˜•
  • --quiet β€” decreases the logging verbosity level. she's being chill 🀫
  • --verbose / -v β€” increases the logging verbosity level. she's yapping (affectionate) πŸ’œ

🌈 Miscellaneous global options

  • --help β€” shows usage information. the "what do i even do here" button 🫢
  • --offline β€” disables substituters and considers all previously downloaded files up-to-date. airplane mode but make it nix ✈️
  • --option name value β€” sets the Nix configuration setting name to value (overriding nix.conf). the "i know better than the config file" move, and honestly sometimes u do πŸ‘‘
  • --refresh β€” considers all previously downloaded files out-of-date. the opposite of --offline, dramatic on purpose πŸ’€
  • --version β€” shows version information. for when u need receipts πŸ“Έ
πŸ“Œ Note: see man nix.conf for overriding configuration settings with command line flags. iykyk πŸ”₯

and that's the whole page bestie!! this was nix3-store-add-path(1) from the General Commands Manual β€” massive shoutout to the Nix manual for having us, mwah πŸ˜­πŸ’– now go forth and nix store add instead, periodt 🌟

πŸ“¦ where this page comes from