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

@ -9,11 +9,7 @@ in
plugins.lightline = {
enable = mkEnableOption "lightline";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.lightline-vim;
description = "Plugin to use for lightline";
};
package = helpers.mkPackageOption "lightline" pkgs.vimPlugins.lightline-vim;
colorscheme = mkOption {
type = with types; nullOr str;