Skip to content

Tracking: Upgrading Determinate Nix soft-requires credentials. #45

Closed

Description

@grahamc

Because FlakeHub Cache does not offer any public caches, upgrading Determinate Nix requires being logged in to FlakeHub to download Determinate Nix. This is ... not ideal, to say the least.

Furthermore, users adopting Determinate Nix on NixOS have to compile Determinate Nix themselves the first time, and subsequent times if they don't ultimately log in. Also not great!

A couple options we're looking at to fix this:

  1. Make a tarball of signed store paths that can be imported to the store, served by install.determinate.systems
  2. Expose a subset of FlakeHub Cache's Determinate Nix cache slice to unauthenticated users via a proxy on install.determinate.systems, using resolve-only/fetch-only tokens.
  3. (very much not preferred) exposing some slices on cache.flakehub.com to unauthenticated users.

Activity

  1. grahamc commented on May 15, 2025

    @grahamc
    MemberAuthor

    Most users can upgrade by first running determinate-nixd login. macOS users can re-run the macOS package from https://docs.determinate.systems/.

    We're still working on making this actually good.

  2. grahamc commented on Jun 3, 2025

    @grahamc
    MemberAuthor

    This is partially solved in Determinate Nix 3.6.1. You can upgrade without authentication by specifying install.determinate.systems as a binary cache:

      --option extra-substituters https://install.determinate.systems \
      --option extra-trusted-public-keys cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM= \
    
  3. dsalaza4 commented on Jun 5, 2025

    @dsalaza4

    @grahamc How does this connect with the provided script for automatic installation via MDM at https://docs.determinate.systems/guides/mdm/?

    I am not sure if users would also have to be logged in so the MDM can update det nix 🤔

  4. therealpxc commented on Jun 24, 2025

    @therealpxc

    This has affected me, and I just wanted to say that I'm glad for how this has been a priority, and that a partial fix/workaround is already available. I'm also looking forward to whatever the more complete solution will be. :)

  5. grahamc commented on Sep 4, 2025

    @grahamc
    MemberAuthor

    Hey folks,

    This has been solved for some time now.

    On NixOS, upgrade your determinate flake input, upgrade via:

    sudo nixos-rebuild \
      --option extra-substituters https://install.determinate.systems \
      --option extra-trusted-public-keys cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM= \
      --flake ... \
      switch
    

    and then you shouldn't need to set these options again in the future.

    On macOS, the best way to upgrade is to run the latest macOS package once: https://docs.determinate.systems/ ...and from then on you can either run the most recent package, or determinate-nixd upgrade.

    On Linux generally, the best option is to just log in and upgrade. If you don't want to do that, the safest option is to uninstall Determinate Nix and reinstall. However, it is very probable that following these migration steps will work: https://docs.determinate.systems/guides/migrating-from-upstream-nix#linux-not-nixos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions