1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

added keyboard nix config & package smartcat

This commit is contained in:
xnm
2024-11-09 18:25:54 +02:00
parent 8f7047e546
commit 8dcff38a63
4 changed files with 49 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
./yubikey.nix
./sound.nix
./usb.nix
./keyboard.nix
./time.nix
./swap.nix
./bootloader.nix

View File

@@ -1,12 +1,6 @@
{ pkgs, ... }:
{
# Select internationalisation properties.
services.xserver = {
xkb.layout = "us,ua,ru";
xkb.options = "grp:alt_shift_toggle";
};
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
"uk_UA.UTF-8/UTF-8"

47
nixos/keyboard.nix Normal file
View File

@@ -0,0 +1,47 @@
{ pkgs, ... }:
{
services.xserver = {
xkb.layout = "us,ua,ru";
xkb.options = "grp:alt_shift_toggle";
};
# services.kanata = {
# enable = true;
# keyboards = {
# internalKeyboard = {
# extraDefCfg = "process-unmapped-keys yes";
# config = ''
# (defsrc
# caps a s d f j k l ; lctl h
# )
# (defvar
# tap-time 200
# hold-time 200
# )
# (defalias
# escsuper (tap-hold $tap-time $hold-time esc lmet)
# a-mod (tap-hold $tap-time $hold-time a lctl)
# s-mod (tap-hold $tap-time $hold-time s lsft)
# d-mod (tap-hold $tap-time $hold-time d lalt)
# f-mod (tap-hold $tap-time $hold-time f lmet)
# j-mod (tap-hold $tap-time $hold-time j rmet)
# k-mod (tap-hold $tap-time $hold-time k ralt)
# l-mod (tap-hold $tap-time $hold-time l rsft)
# ;-mod (tap-hold $tap-time $hold-time ; rctl)
# ctrl-h-backpace (tap-hold $tap-time $hold-time lctl (layer-toggle ctrl-h-layer))
# )
# (deflayer base
# @escsuper @a-mod @s-mod @d-mod @f-mod @j-mod @k-mod @l-mod @;-mod @ctrl-h-backpace h
# )
# (deflayer ctrl-h-layer
# _ _ _ _ _ _ _ _ _ _ bspc
# )
# '';
# };
# };
# };
}

View File

@@ -11,5 +11,6 @@
nextjs-ollama-llm-ui
aichat
tgpt
smartcat
];
}