Skip to content

Commit 229a7c6

Browse files
committed
changelog: document user activation removal
1 parent b0ebfac commit 229a7c6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGELOG

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
2025-01-30
2+
- Previously, some nix-darwin options applied to the user running
3+
`darwin-rebuild`. As part of a long‐term migration to make
4+
nix-darwin focus on system‐wide activation and support first‐class
5+
multi‐user setups, all system activation now runs as `root`, and
6+
these options instead apply to the `system.primaryUser` user.
7+
8+
You will get an evaluation error if you are using any options to
9+
which this applies.
10+
11+
To continue using these options, set `system.primaryUser` to the name
12+
of the user you have been using to run `darwin-rebuild`. In the long
13+
run, this setting will be deprecated and removed after all the
14+
functionality it is relevant for has been adjusted to allow
15+
specifying the relevant user separately, moved under the
16+
`users.users.*` namespace, or migrated to Home Manager.
17+
18+
Accordingly, `darwin-rebuild` must now be run as root, the
19+
`system.activationScripts.{extraUserActivation,preUserActivation,
20+
postUserActivation}` settings have been removed, and all activation
21+
scripts are now executed as `root` – be careful if you override any
22+
of them.
23+
24+
If you run into any unexpected issues with the migration, please
25+
open an issue at <https://github.com/LnL7/nix-darwin/issues/new>
26+
and include as much information as possible.
27+
128
2025-01-29
229
- There is now a `nix.enable` toggle to disable management of the Nix
330
installation. Nix installation management has been made more

0 commit comments

Comments
 (0)