fixed interception
This commit is contained in:
parent
063e058ebc
commit
e32e56c1ab
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -10,6 +10,25 @@
|
||||||
|
|
||||||
networking.hostName = "bicep";
|
networking.hostName = "bicep";
|
||||||
|
|
||||||
|
services.interception-tools = {
|
||||||
|
enable = true;
|
||||||
|
plugins = with pkgs.interception-tools-plugins; [
|
||||||
|
dual-function-keys
|
||||||
|
];
|
||||||
|
udevmonConfig = ''
|
||||||
|
- JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/interception/dual-function-keys/my-mappings.yaml | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE"
|
||||||
|
DEVICE:
|
||||||
|
NAME: "AT Translated Set 2 keyboard"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
environment.etc."interception/dual-function-keys/my-mappings.yaml".text = ''
|
||||||
|
MAPPINGS:
|
||||||
|
- KEY: KEY_CAPSLOCK
|
||||||
|
TAP: KEY_ESC
|
||||||
|
HOLD: KEY_LEFTMETA
|
||||||
|
HOLD_START: BEFORE_RELEASE
|
||||||
|
'';
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
# on your system were taken. It's perfectly fine and recommended to leave
|
||||||
|
|
|
@ -52,23 +52,6 @@
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.resolved.enable = true;
|
services.resolved.enable = true;
|
||||||
services.udisks2.enable = true;
|
services.udisks2.enable = true;
|
||||||
services.interception-tools = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.interception-tools-plugins; [
|
|
||||||
dual-function-keys
|
|
||||||
];
|
|
||||||
udevmonConfig = ''
|
|
||||||
- JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/interception/dual-function-keys/my-mappings.yaml | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE"
|
|
||||||
DEVICE:
|
|
||||||
NAME: "Barcode Reader"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
environment.etc."interception/dual-function-keys/my-mappings.yaml".text = ''
|
|
||||||
MAPPINGS:
|
|
||||||
- KEY: KEY_CAPSLOCK
|
|
||||||
- TAP: KEY_ESC
|
|
||||||
- HOLD: KEY_MSDOS
|
|
||||||
'';
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
|
|
Loading…
Reference in a new issue