1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/docs
Robert Helgesson de448dcb57
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 --specialisation NAME`, which switches to the
  named specialisation. While it was previously possible to accomplish
  this by manually running the specialisation activate script, 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
2025-07-22 11:00:18 +02:00
..
manual home-manager: avoid profile management during activation 2025-07-22 11:00:18 +02:00
release-notes home-manager: avoid profile management during activation 2025-07-22 11:00:18 +02:00
static docs: add style sheets and scrubDerivations 2024-02-01 01:10:58 +01:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
flake.lock docs/flake.nix: add flake outputs for docs 2025-04-07 08:15:20 -07:00
flake.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
home-configuration-nix-footer.5 docs: use nixos-render-docs 2023-12-07 21:28:16 +09:00
home-configuration-nix-header.5 docs: extend home-configuration.nix header 2023-12-07 21:28:18 +09:00
home-manager-manual.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
home-manager.1 home-manager: avoid profile management during activation 2025-07-22 11:00:18 +02:00
html-open-tool.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
options.html docs: add redirect from the previous options.html 2024-06-09 13:09:00 +02:00