modules/output: use mkPackageOption for package option

This commit is contained in:
Matt Sturgeon 2024-09-03 13:54:21 +01:00
parent cdb2e79e51
commit c4a54da4a5
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -6,7 +6,7 @@
...
}:
let
inherit (lib) types mkOption;
inherit (lib) types mkOption mkPackageOption;
inherit (lib) optional optionalString optionalAttrs;
in
{
@ -39,10 +39,8 @@ in
description = "Enable Node provider.";
};
package = mkOption {
type = types.package;
default = pkgs.neovim-unwrapped;
description = "Neovim to use for NixVim.";
package = mkPackageOption pkgs "Neovim" {
default = "neovim-unwrapped";
};
wrapRc = mkOption {