diff --git a/nixos/modules/services/x11/hardware/cmt.nix b/nixos/modules/services/x11/hardware/cmt.nix index 23f07e5de06e..8d037f038625 100644 --- a/nixos/modules/services/x11/hardware/cmt.nix +++ b/nixos/modules/services/x11/hardware/cmt.nix @@ -4,9 +4,6 @@ pkgs, ... }: - -with lib; - let cfg = config.services.xserver.cmt; @@ -18,13 +15,13 @@ in options = { services.xserver.cmt = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = "Enable chrome multitouch input (cmt). Touchpad drivers that are configured for chromebooks."; }; - models = mkOption { - type = types.enum [ + models = lib.mkOption { + type = lib.types.enum [ "atlas" "banjo" "candy" @@ -83,7 +80,7 @@ in }; # closes services }; # closes options - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { services.xserver.modules = [ pkgs.xf86_input_cmt ];