0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/services.xserver.cmt: remove with lib;

This commit is contained in:
Felix Buehler 2024-12-30 14:44:42 +01:00
parent 620887f332
commit ae638c0c4c

View file

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