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-algohash-algo β which hash algorithm we're using. one ofblake3,md5,sha1,sha256, orsha512π₯--modecontent-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: likeflat, but used for derivations serialized in store object andbuiltins.toFile. this one is for advanced use-cases only β for regular usage prefernarandflat, fr fr π
--name/-nname β override the name component of the store path. it defaults to the base name of path π·οΈ
π Logging-related options π
--debugβ set the logging verbosity level to βdebugβ π--log-formatformat β set the format of log output; one ofraw,internal-json,barorbar-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 π--optionname value β set the Nix configuration setting name to value (overridingnix.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
- fedora 44: nix-core 2.35.3-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms