mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 16:08:45 +01:00
hardware: Remove disableLaptopKeyboard option
No longer needed since I've replaced the old laptop keyboard with one that works.
This commit is contained in:
parent
99dcd2d2be
commit
b004639ea3
@ -4,7 +4,7 @@ let
|
|||||||
inherit (lib) mkEnableOption mkIf getExe singleton;
|
inherit (lib) mkEnableOption mkIf getExe singleton;
|
||||||
inherit (pkgs) piper interception-tools;
|
inherit (pkgs) piper interception-tools;
|
||||||
inherit (pkgs.interception-tools-plugins) dual-function-keys;
|
inherit (pkgs.interception-tools-plugins) dual-function-keys;
|
||||||
inherit (cfg) mouseSettings disableLaptopKeyboard lidIgnore powerIgnore keyboardBinds bluetooth;
|
inherit (cfg) mouseSettings lidIgnore powerIgnore keyboardBinds bluetooth;
|
||||||
inherit (builtins) toJSON;
|
inherit (builtins) toJSON;
|
||||||
|
|
||||||
dualFunctionKeysConfig = "dual-function-keys.yaml";
|
dualFunctionKeysConfig = "dual-function-keys.yaml";
|
||||||
@ -16,7 +16,6 @@ in
|
|||||||
keyboardBinds = mkEnableOption "start button for rofi, caps lock as escape, etc.";
|
keyboardBinds = mkEnableOption "start button for rofi, caps lock as escape, etc.";
|
||||||
mouseSettings = mkEnableOption "piper for gaming mice";
|
mouseSettings = mkEnableOption "piper for gaming mice";
|
||||||
bluetooth = mkEnableOption "bluetooth support";
|
bluetooth = mkEnableOption "bluetooth support";
|
||||||
disableLaptopKeyboard = mkEnableOption "udev rule to disable laptop keyboard";
|
|
||||||
lidIgnore = mkEnableOption "ignoring the laptop lid on close";
|
lidIgnore = mkEnableOption "ignoring the laptop lid on close";
|
||||||
powerIgnore = mkEnableOption "ignoring the power button on press";
|
powerIgnore = mkEnableOption "ignoring the power button on press";
|
||||||
};
|
};
|
||||||
@ -28,10 +27,6 @@ in
|
|||||||
ratbagd.enable = mkIf mouseSettings true;
|
ratbagd.enable = mkIf mouseSettings true;
|
||||||
blueman.enable = mkIf bluetooth true;
|
blueman.enable = mkIf bluetooth true;
|
||||||
|
|
||||||
udev.extraRules = mkIf disableLaptopKeyboard ''
|
|
||||||
KERNEL=="event*", ATTRS{name}=="AT Translated Set 2 keyboard", ENV{LIBINPUT_IGNORE_DEVICE}="1"
|
|
||||||
'';
|
|
||||||
|
|
||||||
logind = {
|
logind = {
|
||||||
lidSwitch = mkIf lidIgnore "ignore";
|
lidSwitch = mkIf lidIgnore "ignore";
|
||||||
extraConfig = mkIf powerIgnore "HandlePowerKey=ignore";
|
extraConfig = mkIf powerIgnore "HandlePowerKey=ignore";
|
||||||
|
Loading…
Reference in New Issue
Block a user