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-algohash-algo β picks the hash algorithm. ur choices areblake3,md5,sha1,sha256, orsha512. pick ur fighter βοΈ--modecontent-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β likeflat, but it's for derivations serialized in store object andbuiltins.toFile. for advanced use-cases only β for regular usage u wantnarandflat, fr fr. don't be doing the advanced thing just because it looks cool, i know u, i love u, but no π
--name/-nname β 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
π Logging-related options
--debugβ sets the logging verbosity level to βdebugβ. every little detail, she's telling u everything π£οΈ--log-formatformat β sets the format of log output. one ofraw,internal-json,barorbar-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 βοΈ--optionname value β sets the Nix configuration setting name to value (overridingnix.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
- 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