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

@ -18,11 +18,7 @@ in
plugins.neogit = {
enable = mkEnableOption "neogit";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.neogit;
description = "Plugin to use for neogit";
};
package = helpers.mkPackageOption "neogit" pkgs.vimPlugins.neogit;
disableSigns = mkOption {
description = "Disable signs";