Home Explore Blog Models CI



nix

src/nix/profile-add.md
03d77acc62aa95de838ae011db3def7f3f6c4eedd272ec05000000030000027d
R""(

# Examples

- Add a package from Nixpkgs:

  ```console
  # nix profile add nixpkgs#hello
  ```

- Add a package from a specific branch of Nixpkgs:

  ```console
  # nix profile add nixpkgs/release-20.09#hello
  ```

- Add a package from a specific revision of Nixpkgs:

  ```console
  # nix profile add nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
  ```

- Add a specific output of a package:

  ```console
  # nix profile add nixpkgs#bash^man
  ```

# Description

This command adds [_installables_](./nix.md#installables) to a Nix profile.

> **Note**
>
> `nix profile install` is an alias for `nix profile add`.

)""

Chunks
142ec9ef (1st chunk of `src/nix/profile-add.md`)
Title: Adding Packages to Nix Profiles
Summary
This chunk provides examples and a description of the `nix profile add` command. Examples illustrate how to add packages from Nixpkgs, including specific branches, revisions, and outputs of a package. The command's purpose is to add 'installables' to a Nix profile, and it notes that `nix profile install` is an alias for `nix profile add`.