nix-env CLI

  •  nix-env command is used to manage packages that are installed in the user’s environment
  • If you install the same package using both nix-flake and nix-env, the package will be installed in two different locations in the nix-store, and you will have two copies of the package on your system
    • nix flake is a newer way of defining and managing packages and package sets in Nix
  • when you use nix-env to install a package, it will be installed in the ~/.nix-profile directory
  • when you use nix flake to install a package, it will be installed in a location that is specified by the flake configuration
  • it is generally not recommended to use both nix-env and nix flake to manage the same package, as this can lead to confusion and potential conflicts. Instead, it is recommended to choose one method and stick with it

Notes mentioning this note