!DkNkhjPMwKVMKgmGYw:nixos.org

Nix Installer

53 Members
15 Servers

Load older messages


SenderMessageTime
4 Jul 2024
@sliedes:hacklab.fi@sliedes:hacklab.fi left the room.03:43:25
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:56:41
5 Jul 2024
@sliedes:hacklab.fi@sliedes:hacklab.fi joined the room.23:03:48
@sliedes:hacklab.fi@sliedes:hacklab.fi left the room.23:04:29
8 Jul 2024
@julienmalka:matrix.org@julienmalka:matrix.org left the room.10:38:12
11 Jul 2024
@skano:matrix.orgskano joined the room.14:40:03
@skano:matrix.orgskanocould someone please help14:40:41
@skano:matrix.orgskanoI am unable to install nix on macos14:40:56
@skano:matrix.orgskanoScreenshot 2024-07-11 at 8.20.29 AM.png
Download Screenshot 2024-07-11 at 8.20.29 AM.png
14:41:22
@skano:matrix.orgskanomy zshrc.backup-before-nix file contains nix 14:42:17
@abathur:matrix.orgabathur
In reply to @skano:matrix.org
my zshrc.backup-before-nix file contains nix
can probably follow same steps I gave in https://github.com/NixOS/nix/issues/11074#issuecomment-2220985517
16:00:30
19 Jul 2024
@abathur:matrix.orgabathur Matthew Kenigsberg cole-h I did get https://github.com/NixOS/nix/pull/11075 updated with the approach we discussed Wednesday, if either of you get a chance to give it a shake 16:47:19
@cole-h:matrix.orgcole-h
In reply to @abathur:matrix.org
Matthew Kenigsberg cole-h I did get https://github.com/NixOS/nix/pull/11075 updated with the approach we discussed Wednesday, if either of you get a chance to give it a shake
Just to make sure: the best way to test would be to be on 14.x, install Nix, update to the 15 beta, and then see if the script gets things working again, right?
19:16:59
@abathur:matrix.orgabathurthat, and also trying to run it before the update19:20:12
@cole-h:matrix.orgcole-h(Protip: if you're testing this in a VM, give it more than 64 GB (!!) of disk space -- I couldn't find a way to expand it after the fact and had to reinstall, and the beta installer wanted ~2GB more than I gave it)20:40:15
@cole-h:matrix.orgcole-hOK, finally got the beta installed. Specifically, macOS 15.0 Beta 3 Update (build version 24A5289h) and I have some bad news: _nixbld{1,4} are completely gone. 21:07:59
@cole-h:matrix.orgcole-h

dscl . read /Users/_nixbld1 (through 4) gives eDSRecordNotFound, but 5+ are fine (as we'd expect)

21:09:04
@cole-h:matrix.orgcole-hGonna write down my test steps (to help others) and then reiterate what I just said in 1107521:18:16
@cole-h:matrix.orgcole-h(Posted)21:31:53
@matthewkenigsberg:matrix.org@matthewkenigsberg:matrix.org Looks like cole-h beat me to it and found some issues, but let me know if another test would be helpful next week 23:22:26
20 Jul 2024
@abathur:matrix.orgabathur

Mostly just repeating context from the PR thread into this discussion:

Here's where the assumption that they exist but lack a UID comes from:

https://github.com/NixOS/nix/issues/10948#issuecomment-2201254269

Since it seems like that was either mistaken or maybe Apple's shifted the behavior (perhaps properly deleting the users is their "fix"?), fixing installs that have already been upgraded to sequoia is probably going to be a lot less fun.

14:21:54
@abathur:matrix.orgabathur

Approaches I can imagine so far:

  1. Update migration script to detect some-nixbld-users-but-not-nixbld1 and either

    • Tell these people they'd be better off reinstalling and point to the instructions to do so. Downside of user frustration around repeating builds (but most people who need to reinstall currently seem to suffer this without too much complaining), but it wouldn't entail much more novel work here.
    • Port full user/group creation logic into the migration script, add a routine to delete existing users/groups to simplify the task, fall back on those in this condition. Downside of this is that full logic for the user creation routine (implemented in create_build_user_for_core() in scripts/install-multi-user.sh is scattered over at least 19 functions (maybe more, I haven't walked down the tree) plus some variables, so it'll take a little effort to cleanly extract and leave us with a copy to maintain.
  2. Look at adding a new top-level routine to the multi-user installer itself that can delete existing users/groups (new code) and re-create them (can hopefully re-use existing code), add a flag to install-nix-from-closure to trigger that option. Downsides: needing a more extensive installer update/check cycle to make sure we aren't breaking stuff and that the new deletion routine works, making people do a full installer download to fix this, harder to test and re-use (especially before a proper release) since it isn't a standalone script. Open question as to whether the option should be generic like recreate-build-users (implying some time to make sure this works on linux as well), or more explicitly scoped to save effort.

    I'm not sure if it'd still make sense to have the standalone migration script if its utility were enabling people who learn about it before taking the upgrade to save a little time with the quicker operation of just updating UIDs. If we did retain the separate script there's a risk of confusion around when to run it so it'd probably need to do 1 above but point people at the user-recreation installer flag instead of uninstall instructions.

  3. I'm probably not serious about it due to a variety of issues with getting it implemented and rolled out, but at least in theory Nix itself could probably be able to do some detection and self-healing around broken/missing build users. Downside is probably that we'd still be looking at suggesting uninstall/reinstall to anyone who didn't intentionally or coincidentally end up with a Nix with this capability before they take the upgrade?

15:12:51
23 Jul 2024
@ezzobirbezziou:matrix.orgEzzobir Bezziou joined the room.08:22:09
24 Jul 2024
@redstone-menace:matrix.orgRedstone changed their display name from redstone-menace to Redstone.10:15:29
29 Jul 2024
@abathur:matrix.orgabathur cole-hMatthew Kenigsberg force-pushed to take a swing at this. Untested :) 04:45:00
@cole-h:matrix.orgcole-h
In reply to @abathur:matrix.org
cole-hMatthew Kenigsberg force-pushed to take a swing at this. Untested :)
I don't know if I'll be able to test before our Wednesday call, but I'll be able to test during it hehe
18:50:57
30 Jul 2024
@matthewkenigsberg:matrix.org@matthewkenigsberg:matrix.org cole-h: how did you track down the URL for the beta update? I wanted to try version 4 (you linked 3) but I'm not sure where to find it. And can't sign in with my apple id in the VM 22:16:30
@cole-h:matrix.orgcole-hI googled and downloaded it from a random website 😅22:17:01
@cole-h:matrix.orgcole-hOr rather found the URL on a random website22:17:28
@cole-h:matrix.orgcole-hI think the magical search terms are something like "macOS 15 beta package installer"22:18:17

Show newer messages


Back to Room ListRoom Version: 9