home-manager/modules
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
..
accounts accounts.email: add clarifying documentation 2024-06-04 20:23:39 +02:00
config home-cursor: fix typo in XDG data directory link 2023-11-07 09:21:58 +01:00
files files: make collision error message more helpful 2024-04-30 00:41:45 +02:00
i18n/input-method kime: remove documentation dependency on config 2024-03-18 22:13:07 +01:00
launchd treewide: deprecate DRY_RUN_CMD and DRY_RUN_NULL 2024-01-24 13:36:05 +01:00
lib fastfetch: add module 2024-05-10 12:42:39 +02:00
lib-bash WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
misc blanket: add module 2024-06-22 08:19:17 +02:00
po Translate using Weblate (Polish) 2024-06-18 23:05:42 +02:00
programs mpv: fix package if wrapMpv not found 2024-06-11 23:35:34 +02:00
services blanket: add module 2024-06-22 08:19:17 +02:00
targets darwin: misc defaults (dock, menu clock, finder) 2024-05-11 00:04:45 +02:00
default.nix home-manager: set module class to "homeManager" 2024-04-27 09:28:21 +02:00
files.nix WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
home-environment.nix WIP home-manager: avoid profile management during activation 2024-06-22 15:15:55 +02:00
manual.nix docs: add style sheets and scrubDerivations 2024-02-01 01:10:58 +01:00
modules.nix blanket: add module 2024-06-22 08:19:17 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh home-manager: remove the export of run 2024-01-28 10:53:09 +01:00
systemd.nix systemd: add enable option 2024-04-16 21:12:47 +02:00
xresources.nix treewide: remove now-redundant lib.mdDoc calls 2023-07-17 18:49:09 +01:00
xsession.nix xsession: allow xplugd to restart on failure 2024-01-16 08:07:00 +01:00