mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-01-18 11:13:30 -05:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ 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}
|
|
'';
|
|
User="root";
|
|
};
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
}
|