Pick a better name than "versionsOfOption"

This commit is contained in:
mexisme
2024-01-31 21:36:14 +13:00
parent 85a2b5542e
commit 88712a124b
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
let
inherit (lib) mkIf mkOption;
inherit (pkgs.callPackage ../linux-package.nix { }) linuxPackage surfacePatches isVersionOf versionsOfOption;
inherit (pkgs.callPackage ../linux-package.nix { }) linuxPackage surfacePatches isVersionOf versionsOfEnum;
cfg = config.microsoft-surface;
@@ -20,7 +20,7 @@ let
in {
options.microsoft-surface.kernelVersion = mkOption {
type = versionsOfOption version;
type = versionsOfEnum version;
};
config = mkIf (isVersionOf cfg.kernelVersion version) {