Emacs-overlay missing cachix

Hello,
I’m new to NixOS and I’m trying to figure out a way to avoid compiling Emacs every time I change something in my home-manager config. After a little research I found that the best option is to “pin” the nixpgs and emacs-overlay versions to the inputs of the last successful job on Hydra. With that in mind I created this module:


{ config, pkgs, ... }:

let
  pinned = import (fetchTarball
    "https://github.com/NixOS/nixpkgs/archive/6c4b9f1a2fd761e2d384ef86cff0d208ca27fdca.tar.gz") {
      overlays = [
        (import (builtins.fetchTarball {
          url =
            "https://github.com/nix-community/emacs-overlay/archive/ccf704241a96879f117b49490de1ba617defac25.tar.gz";
        }))
      ];
    };
in {
  services = {
    emacs = {
      enable = true;
      package = pinned.emacsPgtkGcc;
    };
  };
  programs = {
    emacs = {
      enable = true;
      package = pinned.emacsPgtkGcc;
    };
  };
}

I got the commit hashes from this hydra job.

Even after all this home-manager switch keeps trying to build Emacs, can anyone point me to what I’m doing wrong? Thanks in advance

Do you have the nix-community binary cache configured? GitHub - nix-community/emacs-overlay: Bleeding edge emacs overlay [maintainer=@adisbladis]

Yes, I have nix-community in my $HOME/.config/nix/nix.conf

Try adding sha256s to the fetchers.

That will only have an effect if you are a trusted user, if not user based binary cache settings will be ignored.

On top of that, you need the full URL, not just a nickname and you need it’s signature in trusted-public-keys.

Well, this seems to have solved the issued. Thanks everyone for their input!