From 19789829f8bed530ec3617361ad5acffa21b9d21 Mon Sep 17 00:00:00 2001 From: rycee Date: Tue, 21 Mar 2023 07:52:04 +0000 Subject: [PATCH] deploy: 2bf15d3835030906e727abd0e1533b98a4fb916c --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 080d6ed1..27d9256c 100644 --- a/index.html +++ b/index.html @@ -601,7 +601,9 @@ then please raise them in the corresponding project, not as issues in the Home Manager tracker.

If you have made something interesting related to Home Manager then you are encouraged to create a PR that expands this chapter.

6.1. Module Collections

Chapter 7. Frequently Asked Questions (FAQ)

7.1. Why is there a collision error when switching generation?

Home Manager currently installs packages into the user environment, precisely as if the packages were installed through nix-env --install. This means that you will get a collision error if your Home Manager configuration attempts to install a package that you already have installed manually, that is, packages that shows up when you run nix-env --query.

For example, imagine you have the hello package installed in your environment

$ nix-env --query
+

A collection of modules maintained by Anselm Schüler.

  • +Stylix — System-wide colorscheming and typography +

    Configure your applications to get coherent color scheme and font.

  • Chapter 7. Frequently Asked Questions (FAQ)

    7.1. Why is there a collision error when switching generation?

    Home Manager currently installs packages into the user environment, precisely as if the packages were installed through nix-env --install. This means that you will get a collision error if your Home Manager configuration attempts to install a package that you already have installed manually, that is, packages that shows up when you run nix-env --query.

    For example, imagine you have the hello package installed in your environment

    $ nix-env --query
     hello-2.10

    and your Home Manager configuration contains

    home.packages = [ pkgs.hello ];

    Then attempting to switch to this configuration will result in an error similar to

    $ home-manager switch
     these derivations will be built:
       /nix/store/xg69wsnd1rp8xgs9qfsjal017nf0ldhm-home-manager-path.drv