Next: , Up: Profiles   [Contents][Index]


4.1.1 Profile Commands

M-x guix-profiles

Show a list of available Guix profiles. By default, it displays:

~/.guix-profile

the default user profile

~/.config/guix/current

profile, populated by guix pull

/var/guix/profiles/system

system profile (only on Guix System)

GUIX_PROFILE

(only if this environment variable is set and this profile is not the same as one of the above)

and other profiles shown by guix package --list-profiles shell command. If it is not enough for you, you can add even more profiles to this list by setting guix-profiles variable, for example, like this:

(with-eval-after-load 'guix-ui-profile
  (setq guix-profiles
        (append '("/path/to/my-profile1"
                  "/path/to/my-profile2")
                (guix-all-profiles))))

The “profile-list” buffer provides some keys to work with profiles (see Profile Keys), but also there are the following standalone profile commands that can be called outside this buffer.

M-x guix-set-current-profile

Set the current profile (guix-current-profile variable) to the specified one. The current profile is used by the package commands (see Package Commands) to check what package is installed in this profile, and by generation commands (see Generation Commands).

M-x guix-apply-manifest

Apply a manifest file to the current profile or a specified profile, if the prefix argument is used. This has the same meaning as --manifest option (see Invoking guix package in The GNU Guix Reference Manual).