---
name: "nix-env-switch-profile"
section: "1"
platform: "linux"
package: "nix-bin"
version: "2.26.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nix-env-switch-profile"
---

# nix-env-switch-profile(1)

set user environment to given profile

## Name

`nix-env --switch-profile` - set user environment to given profile

## Synopsis

`nix-env` {`--switch-profile` \| `-S`} *path*

## Description

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
```
