home-manager/docs/manual
Robert Helgesson 4aa9eb327d
WIP home-manager: avoid profile management during activation
This commit deprecates profile management from the activation script.
The profile management is instead the responsibility of the driving
software, for example, the `home-manager` tool in the case of
standalone installs.

The legacy behavior is still available for backwards compatibility but
may be removed in the future.

The new behavior resolves (or moves us closer to resolving) a number
of long standing open issues:

- `home-manager switch --rollback`, which performs a rollback to the
  previous Home Manager generation before activating. While it was
  previously possible to accomplish this by activating an old
  generation, it did always create a new profile generation.

  This option has been implemented as part of this commit.

- `home-manager switch --test`, which activates the configuration but
  does not create a new profile generation.

  This option has _not_ been implemented here since it relies on the
  current configuration being activated on login, which we do not
  currently do.

- When using the "Home Manager as a NixOS module" installation method
  we previously created an odd `home-manager` per-user "shadow
  profile" for the user. This is no longer necessary.

  This has been implemented as part of this commit.

Fixes #3450
2024-06-22 15:15:55 +02:00
..
3rd-party docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
contributing docs: minor fixes of guidelines 2024-03-17 23:35:57 +01:00
faq docs: update beets and description of overriding packages 2024-03-14 21:20:04 +01:00
installation home-manager: prepare release 24.05 2024-05-25 22:13:25 +02:00
internals WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
nix-flakes home-manager: prepare release 24.05 2024-05-25 22:13:25 +02:00
usage WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
writing-modules docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
3rd-party.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
contributing.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
faq.md docs: update beets and description of overriding packages 2024-03-14 21:20:04 +01:00
installation.md treewide: prefer the official wiki 2024-04-17 23:58:16 +02:00
internals.md WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
manpage-urls.json docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
manual.md WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
nix-darwin-options.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
nix-flakes.md treewide: prefer the official wiki 2024-04-17 23:58:16 +02:00
nixos-options.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
options.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
preface.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00
usage.md docs: replace console language with shell 2023-12-07 21:28:18 +09:00
writing-modules.md docs: render without deprecated optionsDocBook 2023-12-07 21:27:38 +09:00