Skip to content

Migrate nixpkgs flake url to tarball #81

Description

@Frontear

Basically, we want to change from this:

# flake.nix
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };

  # ...
}

to this:

# flake.nix
{
  inputs = {
    nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
  };

  # ...
}

Why? Less reliance on GitHub, which has been showing more and more signs of being unreliable with all of the recent news of GitHub going down arbitrarily. There's another benefit that the tarballs contain a cache that can be used with command-not-found, which could make nix-index obsolete. Minor change, might target it for this staging cycle.

Minor issue pertains to our current mechanism of syncing flake.lock revisions across projects, which relies on using a specific commit hash, which is NOT possible if we start using tarballs. That might pose an issue (see the envrc file in templates/ if you want to see what I'm talking about).

Activity

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

Metadata

Metadata

Assignees

Labels

compat: backwardsRepresents a backwards compatible change. Existing functionality is wholly unaffected by changes.priority: lowNon-essential issues that are neither affecting functionality nor usability.type: feature/additionMarks the request/implementation of a feature addition. Accompany with relevant labels.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions