nix3-profile-install(1)
π nix3-profile-install(1) π
okay so this lil page lives in the General Commands Manual, and it's literally all about nix profile install. sit with me bestie, we're gonna get you fluent π
β οΈ Warning β this program is experimental and its interface is subject to change. (translating: it works, it slays, but the API might glow up on you without warning π)
β¨ Name β¨
nix profile install β install a package into a profile. that's it, that's the whole job, and it eats every time π«Ά
π Synopsis π
nix profile install [optionβ¦] installablesβ¦
π Examples π
here's the vibe, in four iconic flavours:
- Install a package from Nixpkgs:
# nix profile install nixpkgs#hello
- Install a package from a specific branch of Nixpkgs:
# nix profile install nixpkgs/release-20.09#hello
- Install a package from a specific revision of Nixpkgs:
# nix profile install nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
- Install a specific output of a package:
# nix profile install nixpkgs#bash^man
see how the flake ref just keeps getting more specific? it's giving glow up, not me doing too much π
πΈ Description πΈ
This command adds installables to a Nix profile. that's the whole main character moment β you point at stuff, it goes in your profile, no cap β¨
π Options π
--prioritypriority β the priority of the package to install.--profilepath β the profile to operate on.--stdinβ read installables from the standard input. No default installable applied. (so like, it won't just assume one for you, you gotta feed it π)
π₯ Common evaluation options π₯
--argname expr β pass the value expr as the argument name to Nix functions.--arg-from-filename path β pass the contents of file path as the argument name to Nix functions.--arg-from-stdinname β pass the contents of stdin as the argument name to Nix functions.--argstrname string β pass the string string as the argument name to Nix functions.--debuggerβ start an interactive environment if evaluation fails. (safety net era π§)--eval-storestore-url β the URL of the Nix store to use for evaluation, i.e. to store derivations (.drvfiles) and inputs referenced by them.--impureβ allow access to mutable paths and repositories. (letting the chaos in fr fr)--include/-Ipath β add path to search path entries used to resolve lookup paths.
This option may be given multiple times.
Paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable. π
--override-flakeoriginal-ref resolved-ref β override the flake registries, redirecting original-ref to resolved-ref.
π¦ Common flake-related options π¦
--commit-lock-fileβ commit changes to the flake's lock file.--inputs-fromflake-url β use the inputs of the specified flake as registry entries.--no-registriesβ don't allow lookups in the flake registries.
DEPRECATED β use --no-use-registries instead. (old news bestie, move on π«Ά)
--no-update-lock-fileβ do not allow any updates to the flake's lock file.--no-write-lock-fileβ do not write the flake's newly generated lock file.--output-lock-fileflake-lock-path β write the given lock file instead offlake.lockwithin the top-level flake.--override-inputinput-path flake-url β override a specific flake input (e.g.dwarffs/nixpkgs). This implies--no-write-lock-file.--recreate-lock-fileβ recreate the flake's lock file from scratch.
DEPRECATED β use nix flake update instead.
--reference-lock-fileflake-lock-path β read the given lock file instead offlake.lockwithin the top-level flake.--update-inputinput-path β update a specific flake input (ignoring its previous entry in the lock file).
DEPRECATED β use nix flake update instead.
π Logging-related options π
--debugβ set the logging verbosity level to 'debug'. (maximum yapping, we love to see it)--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.--repairβ during evaluation, rewrite missing or corrupted files in the Nix store. During building, rebuild missing or corrupted store paths.--versionβ show version information.
π Options that change the interpretation of installables π
--exprexpr β interpret installables as attribute paths relative to the Nix expression expr.--file/-ffile β interpret installables as attribute paths relative to the Nix expression stored in file. If file is the character-, then a Nix expression will be read from standard input. Implies--impure.
Note β see man nix.conf for overriding configuration settings with command line flags.
and that's the whole page bestie, you're officially fluent in nix profile install πβ¨
this iconic lil page signs off as nix3-profile-install(1) β that's the source/version tag and the whole footer vibe, so go forth and install things, iykyk ππ¦π
π¦ where this page comes from
- debian trixie: nix-bin 2.26.3+dfsg-1 Β· LGPL-2.1-only
- ubuntu questing: nix-bin 2.26.3+dfsg-1ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms