refactor os configurations
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m10s
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m10s
This commit is contained in:
29
osConfigs/modules/touchpad.nix
Normal file
29
osConfigs/modules/touchpad.nix
Normal file
@ -0,0 +1,29 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# touchpad.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:39:41 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 01:02:41 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.mods.touchpad = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "enable touchpad support";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.touchpad.enable {
|
||||
services.libinput.enable = true;
|
||||
services.libinput.touchpad.clickMethod = "clickfinger";
|
||||
services.libinput.touchpad.tapping = false;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user