helpers: add mkPackageOption + refactoring

This commit is contained in:
Gaetan Lepage 2023-01-23 23:50:20 +01:00
parent 66b1b099cf
commit ff2be33445
58 changed files with 94 additions and 258 deletions

View file

@ -10,11 +10,7 @@ in
plugins.dashboard = {
enable = mkEnableOption "dashboard";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.dashboard-nvim;
description = "Plugin to use for dashboard-nvim";
};
package = helpers.mkPackageOption "dashboard" pkgs.vimPlugins.dashboard-nvim;
header = mkOption {
description = "Header text";