Skip to content

Commit

Permalink
nix: Increase nix-darwin stateVersion to 5 (Sequoia)
Browse files Browse the repository at this point in the history
Even though I don't have nix.configureBuildUsers set[1], the increment
communicates a known level of compatibility with the future macOS
Sequoia.

I ran Nix's Sequoia migration script[2] manually prior to any OS update
for good measure.

  $ curl -L https://raw.githubusercontent.com/NixOS/nix/f2e7e996/scripts/sequoia-nixbld-user-migration.sh | bash

  Attempting to migrate _nixbld users.

  Step 1: move existing _nixbld users out of the destination UID range.
  Password:
     Temporarily moved _nixbld1 from uid 301 -> 31000
     Temporarily moved _nixbld2 from uid 302 -> 31001
     Temporarily moved _nixbld3 from uid 303 -> 31002
     Temporarily moved _nixbld4 from uid 304 -> 31003
     Temporarily moved _nixbld5 from uid 305 -> 31004
     Temporarily moved _nixbld6 from uid 306 -> 31005
     Temporarily moved _nixbld7 from uid 307 -> 31006
     Temporarily moved _nixbld8 from uid 308 -> 31007
     Temporarily moved _nixbld9 from uid 309 -> 31008
     Temporarily moved _nixbld10 from uid 310 -> 31009
     Temporarily moved _nixbld11 from uid 311 -> 31010
     Temporarily moved _nixbld12 from uid 312 -> 31011
     Temporarily moved _nixbld13 from uid 313 -> 31012
     Temporarily moved _nixbld14 from uid 314 -> 31013
     Temporarily moved _nixbld15 from uid 315 -> 31014
     Temporarily moved _nixbld16 from uid 316 -> 31015
     Temporarily moved _nixbld17 from uid 317 -> 31016
     Temporarily moved _nixbld18 from uid 318 -> 31017
     Temporarily moved _nixbld19 from uid 319 -> 31018
     Temporarily moved _nixbld20 from uid 320 -> 31019
     Temporarily moved _nixbld21 from uid 321 -> 31020
     Temporarily moved _nixbld22 from uid 322 -> 31021
     Temporarily moved _nixbld23 from uid 323 -> 31022
     Temporarily moved _nixbld24 from uid 324 -> 31023
     Temporarily moved _nixbld25 from uid 325 -> 31024
     Temporarily moved _nixbld26 from uid 326 -> 31025
     Temporarily moved _nixbld27 from uid 327 -> 31026
     Temporarily moved _nixbld28 from uid 328 -> 31027
     Temporarily moved _nixbld29 from uid 329 -> 31028
     Temporarily moved _nixbld30 from uid 330 -> 31029
     Temporarily moved _nixbld31 from uid 331 -> 31030
     Temporarily moved _nixbld32 from uid 332 -> 31031

  Step 2: re-create missing early _nixbld# users.

  Step 3: relocate remaining _nixbld# UIDs to 351+
        _nixbld1 migrated to uid: 351
        _nixbld2 migrated to uid: 352
        _nixbld3 migrated to uid: 353
        _nixbld4 migrated to uid: 354
        _nixbld5 migrated to uid: 355
        _nixbld6 migrated to uid: 356
        _nixbld7 migrated to uid: 357
        _nixbld8 migrated to uid: 358
        _nixbld9 migrated to uid: 359
        _nixbld10 migrated to uid: 360
        _nixbld11 migrated to uid: 361
        _nixbld12 migrated to uid: 362
        _nixbld13 migrated to uid: 363
        _nixbld14 migrated to uid: 364
        _nixbld15 migrated to uid: 365
        _nixbld16 migrated to uid: 366
        _nixbld17 migrated to uid: 367
        _nixbld18 migrated to uid: 368
        _nixbld19 migrated to uid: 369
        _nixbld20 migrated to uid: 370
        _nixbld21 migrated to uid: 371
        _nixbld22 migrated to uid: 372
        _nixbld23 migrated to uid: 373
        _nixbld24 migrated to uid: 374
        _nixbld25 migrated to uid: 375
        _nixbld26 migrated to uid: 376
        _nixbld27 migrated to uid: 377
        _nixbld28 migrated to uid: 378
        _nixbld29 migrated to uid: 379
        _nixbld30 migrated to uid: 380
        _nixbld31 migrated to uid: 381
        _nixbld32 migrated to uid: 382
  Migrated 32 users. If you want to double-check, try:
  dscl . list /Users UniqueID | grep _nixbld | sort -n -k2

[1]: LnL7/nix-darwin#1069
[2]: NixOS/nix#11075
  • Loading branch information
antoineco committed Sep 11, 2024
1 parent 773383c commit 40a4434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nix/hosts/colomar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
# Used for backwards compatibility, similarly to NixOS.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://daiderd.com/nix-darwin/manual/).
system.stateVersion = 4;
system.stateVersion = 5;
}

0 comments on commit 40a4434

Please sign in to comment.