nix-env-switch-profile(1)

nix-env-switch-profile1

Set user environment to given profile

Usage

nix-env {--switch-profile | -S} path

Overview

This operation makes path the current profile for the user. That is, the symlink ~/.nix-profile is made to point to path.

{{#include ./opt-common.md}}

{{#include ../opt-common.md}}

{{#include ./env-common.md}}

{{#include ../env-common.md}}

Examples

$ nix-env --switch-profile ~/my-profile

From nix-bin 2.26.3+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.