1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

emacs: add internal finalPackage option

This commit is contained in:
Robert Helgesson 2018-09-11 21:23:11 +02:00
parent 055d100548
commit 50de1a6885
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -33,10 +33,19 @@ in
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
description = "Extra packages available to Emacs.";
};
finalPackage = mkOption {
type = types.package;
internal = true;
readOnly = true;
description = "The Emacs package including any extra packages.";
};
};
};
config = mkIf cfg.enable {
home.packages = [ (emacsWithPackages cfg.extraPackages) ];
home.packages = [ cfg.finalPackage ];
programs.emacs.finalPackage = emacsWithPackages cfg.extraPackages;
};
}