1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Hraban 2025-03-19 09:45:54 +04:00 committed by GitHub
commit 9ed1b3a949
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,12 +6,9 @@ let
cfg = config.programs.emacs;
# Copied from all-packages.nix, with modifications to support
# overrides.
emacsPackages = let epkgs = pkgs.emacsPackagesFor cfg.package;
in epkgs.overrideScope cfg.overrides;
emacsWithPackages = emacsPackages.emacsWithPackages;
# Get the packages from the supplied emacs rather than the nixpkgs to ensure a
# separate emacs pin also carries with it the packages from that pin.
inherit (cfg.package.pkgs.overrideScope cfg.overrides) emacsWithPackages;
extraPackages = epkgs:
let