Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darwin: support new system activation #233

Open
isabelroses opened this issue Mar 6, 2025 · 2 comments · May be fixed by #238
Open

darwin: support new system activation #233

isabelroses opened this issue Mar 6, 2025 · 2 comments · May be fixed by #238

Comments

@isabelroses
Copy link

nix-darwin is overhauling its system management to allow for multi user configuration. This will impact nh.

see: LnL7/nix-darwin#1341

@viperML
Copy link
Owner

viperML commented Mar 7, 2025

We should ping the darwin maintainer, as I have no idea what nh darwin does @ToyVo

@khaneliman
Copy link

Current message output from existing implementation:

> Activating configuration for user
warning: `activate-user` is deprecated and will be removed in 25.11
This is usually due to the use of a non‐standard activation/deployment
tool. If you maintain one of these tools, our advice is:

  You can identify a post‐user‐activation configuration by the absence
  of `activate-user` or the second line of the script being
  `# nix-darwin: deprecated`.

  We recommend running `$systemConfig/sw/bin/darwin-rebuild activate`
  to activate built configurations; for a pre‐user‐activation
  configuration this should be run as a normal user, and for a
  post‐user‐activation configuration it should be run as `root`.

  If you can’t or don’t want to use `darwin-rebuild activate`, then you
  should skip running `activate-user` for post‐user‐activation
  configurations and continue running `activate` as `root`.

  In 25.11, `darwin-rebuild` will stop running `activate-user` and this
  transition script will be deleted; you should be able to safely
  remove all related logic by then.

Otherwise, you should report this to the deployment tool developers. If
you don’t use a third‐party deployment tool, please open a bug report
at <https://github.com/LnL7/nix-darwin/issues/new> and include as much
detail about your setup as possible.
> Activating configuration
setting up groups...

@khaneliman khaneliman linked a pull request Mar 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants