Skip to content

Using fenix.overlay can prevent nix from downloading packages from cachix #79

@MaeIsBad

Description

@MaeIsBad

I ran into an issue where my laptop wasn't using the nix-community cache for fenix packages when building my system, despite using the fenix flake and not modifying the fenix nixpkgs input. This is because fenix will use super.callPackage in the overlay, which causes it to use the system nixpkgs and not the ones from the fenix.inputs.nixpkgs.

One solution is to replace the fenix overlay from the repo with a simple:

nixpkgs.overlays = [ (prev: _: { fenix = import fenix { system = prev.system; }) }

This isn't necessarily a bug, but I thought it might be worth it to document this behavior with an issue. Feel free to close or maybe consider mentioning this in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions