1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/modules
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
..
accounts email: allow more extensive configuration of aliases 2025-07-10 15:45:32 -05:00
config home-cursor: sway depend on cfg.size instead of gtk.cursorTheme.size (#7176) 2025-05-31 19:31:59 -05:00
files files: show better error when file would be clobbered (#7348) 2025-06-30 21:16:25 -05:00
i18n/input-method maintainers: remove duplicate HM entries 2025-07-04 09:20:48 -05:00
launchd treewide: lnl7 -> nix-darwin 2025-05-16 18:47:17 -05:00
lib thunderbird: support declaration of address books (#7443) 2025-07-20 19:12:35 -05:00
lib-bash home-manager: move profile management 2025-01-03 11:22:59 +01:00
misc thunderbird: support declaration of address books (#7443) 2025-07-20 19:12:35 -05:00
po home-manager: avoid profile management during activation 2025-07-22 11:00:18 +02:00
programs neomutt: allow default email sending behaviour (#7476) 2025-07-21 23:12:28 +02:00
services ssh-tpm-agent: init module (#7495) 2025-07-17 19:31:15 -05:00
targets targets/darwin: fix ShowDate default description (#7256) 2025-06-12 20:46:23 -05:00
dbus.nix dbus: Create with pacakges options (#7064) 2025-05-15 12:59:12 -05:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
files.nix files: add home.file.<name>.ignorelinks 2025-05-11 18:53:40 -05:00
home-environment.nix home-manager: avoid profile management during activation 2025-07-22 11:00:18 +02:00
manual.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
modules.nix modules: allow root level nix files 2025-06-23 16:20:26 -05:00
systemd-activate.sh systemd: don't try to restart templates 2024-06-26 18:14:48 +02:00
systemd.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
wayland.nix wayland: create tray.target if xsession is not enabled (#6332) 2025-02-06 22:50:03 +01:00
xresources.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
xsession.nix xsession: add xdg-desktop-autostart to requires of hm-graphical-session (#7108) 2025-05-28 22:39:21 -05:00