From ae638c0c4cacbadea6f1a04c33ce575147865e90 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 30 Dec 2024 14:44:42 +0100 Subject: [PATCH] nixos/services.xserver.cmt: remove `with lib;` --- nixos/modules/services/x11/hardware/cmt.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 ];