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:
parent
620887f332
commit
ae638c0c4c
1 changed files with 5 additions and 8 deletions
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue