1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

treewide: use mkPackageOption

Standardized interface to provide a consistent treewide experience.
This commit is contained in:
Austin Horstman 2025-03-30 14:28:32 -05:00
parent 579a71b948
commit b24689a173
62 changed files with 91 additions and 413 deletions

View file

@ -29,13 +29,8 @@ in {
programs.emacs = {
enable = lib.mkEnableOption "Emacs";
package = mkOption {
type = types.package;
default = pkgs.emacs;
defaultText = literalExpression "pkgs.emacs";
example = literalExpression "pkgs.emacs25-nox";
description = "The Emacs package to use.";
};
package =
lib.mkPackageOption pkgs "emacs" { example = "pkgs.emacs25-nox"; };
# NOTE: The config is placed in default.el instead of ~/.emacs.d so that
# it won't conflict with Emacs configuration frameworks. Users of these