2024-11-22 00:08:00 -05:00
|
|
|
{ NAME }:
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
# services = {
|
|
|
|
# kanata = {
|
|
|
|
# enable = true;
|
|
|
|
# keyboards = {
|
|
|
|
# razer = {
|
|
|
|
# # devices = [
|
|
|
|
# # "/dev/input/by-id/usb-Razer_Razer_BlackWidow_V4-event-kbd"
|
|
|
|
# # ];
|
|
|
|
# extraDefCfg = "process-unmapped-keys yes";
|
|
|
|
# config = ''
|
|
|
|
# (defsrc
|
|
|
|
# caps
|
|
|
|
# )
|
|
|
|
# (defvar
|
|
|
|
# tap-time 150
|
|
|
|
# hold-time 200
|
|
|
|
# )
|
|
|
|
# (defalias
|
|
|
|
# caps (tap-hold 100 100 esc lctrl)
|
|
|
|
# )
|
|
|
|
# (deflayer base
|
|
|
|
# @caps
|
|
|
|
# )
|
|
|
|
#
|
|
|
|
# '';
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
users = {
|
|
|
|
users = {
|
|
|
|
"${NAME}" = {
|
|
|
|
extraGroups = [
|
|
|
|
"uinput"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services.kanata-meyer = {
|
|
|
|
enable = true;
|
|
|
|
description = "services-kanata sucks ass";
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = ''
|
|
|
|
${pkgs.kanata}/bin/kanata \
|
|
|
|
--cfg ${./config.kbd}
|
|
|
|
'';
|
2024-11-26 19:59:47 -05:00
|
|
|
User="root";
|
2024-11-22 00:08:00 -05:00
|
|
|
};
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
};
|
|
|
|
}
|