nix3-store-add-file(1)

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

okay bestie so this is from the General Commands Manual, and it's literally the manual page for nix store add-file 🌸

⚠️ Warning β€” this program is experimental and its interface is subject to change. no cap. don't get attached to the vibes, they may shift under u 😭

✨ Name ✨

nix store add-file β€” Deprecated. use nix store add --mode flat instead πŸ’…


πŸ¦‹ Synopsis πŸ¦‹

nix store add-file [option…] path

πŸŽ€ Options πŸŽ€

  • --dry-run β€” show what this command would do, without actually doing it. manifesting, but not committing ✨
  • --hash-algo hash-algo β€” which hash algorithm we're using. one of blake3, md5, sha1, sha256, or sha512 πŸ”₯
  • --mode content-address-method β€” how to compute the content-address of the store object. pick one bestie:
    • nar (the default): serialises the input as a Nix Archive and passes that to the hash function πŸ“¦
    • flat: assumes the input is a single file and directly passes it to the hash function 🫢
    • text: like flat, but used for derivations serialized in store object and builtins.toFile. this one is for advanced use-cases only β€” for regular usage prefer nar and flat, fr fr πŸ‘‘
  • --name / -n name β€” override the name component of the store path. it defaults to the base name of path 🏷️
  • --debug β€” set the logging verbosity level to β€˜debug’ πŸ”
  • --log-format format β€” set the format of log output; one of raw, internal-json, bar or bar-with-logs 🎚️
  • --print-build-logs / -L β€” print full build logs on standard error πŸ“œ
  • --quiet β€” decrease the logging verbosity level 🀫
  • --verbose / -v β€” increase the logging verbosity level πŸ—£οΈ

πŸ’œ Miscellaneous global options πŸ’œ

  • --help β€” show usage information πŸ™‹
  • --offline β€” disable substituters and consider all previously downloaded files up-to-date πŸŒ™
  • --option name value β€” set the Nix configuration setting name to value (overriding nix.conf) βš™οΈ
  • --refresh β€” consider all previously downloaded files out-of-date πŸ”„
  • --version β€” show version information ⭐
πŸ“ Note β€” see man nix.conf for overriding configuration settings with command line flags. iykyk πŸ’…

that's the whole page bestie, go forth and add-file (or like… don't, it's deprecated, use nix store add --mode flat πŸ“). mwah πŸ’– β€” this was nix3-store-add-file(1), signing off πŸŽ€

πŸ“¦ where this page comes from