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