nix3-nar-pack(1)
π Warning π
bestie. i need you to hear me on this one. this program is experimental and its interface is subject to change. like, it could ghost you and change its whole personality next release. don't build your entire life on it, okay? π
π Name π
nix nar pack β serialise a path to stdout in NAR format π¦
this is from the General Commands Manual, the nix3-nar-pack(1) page, and i'm about to make it make sense, no cap.
β¨ Synopsis β¨
nix nar pack [optionβ¦] path
so it's literally just: the command, maybe some options, and one path. that's the whole vibe check. πΈ
π Examples π
okay so say you wanna serialise directory foo as a Nix Archive (NAR). you just do this, periodt:
# nix nar pack ./foo > foo.nar
look at that redirect. > sending it straight into foo.nar. iconic. π
π¦ Description π¦
This command generates a Nix Archive (NAR) file containing the serialisation of path, which must contain only regular files, directories and symbolic links. β¨
The NAR is written to standard output. π«Ά
important note bestie: path can only contain regular files, directories and symlinks. anything else and it's not the vibe. also β it goes to stdout, so if you don't redirect it somewhere, it's coming at your terminal. you've been warned. π
π Options π
π Logging-related options π
--debugβ Set the logging verbosity level to 'debug'. maximum yapping mode. we love to see it.--log-formatformat β Set the format of log output; one ofraw,internal-json,barorbar-with-logs. pick your aesthetic β¨--print-build-logs,-Lβ Print full build logs on standard error. gimme the whole thing, no crumbs.--quietβ Decrease the logging verbosity level. shhh. it's giving silence.--verbose,-vβ Increase the logging verbosity level. tell me EVERYTHING π
πΈ Miscellaneous global options πΈ
--helpβ Show usage information. when you're lost, bestie. it happens.--offlineβ Disable substituters and consider all previously downloaded files up-to-date. airplane mode but make it nix βοΈ--optionname value β Set the Nix configuration setting name to value (overridingnix.conf). you're the main character, you get to override.--refreshβ Consider all previously downloaded files out-of-date. everythinggg is stale now, and that's on purpose π--versionβ Show version information. who even are you? find out π
Note π See man nix.conf for overriding configuration settings with command line flags. iykyk.
and that's the whole page, bestie!! this was the nix3-nar-pack(1) page β part of the manual, and the footer's just that same nix3-nar-pack(1) tag hanging out at the bottom, no version or date drama attached. slay, you read the whole thing. π§β¨π
π¦ 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