mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 09:09:45 +01:00
emacs: add internal finalPackage
option
(cherry picked from commit 50de1a6885
)
This commit is contained in:
parent
163588b61b
commit
94fad32e41
1 changed files with 10 additions and 1 deletions
|
@ -33,10 +33,19 @@ in
|
||||||
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
|
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
|
||||||
description = "Extra packages available to Emacs.";
|
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 {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ (emacsWithPackages cfg.extraPackages) ];
|
home.packages = [ cfg.finalPackage ];
|
||||||
|
|
||||||
|
programs.emacs.finalPackage = emacsWithPackages cfg.extraPackages;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue