add keychron keyboard

This commit is contained in:
dusk 2023-05-11 14:14:41 +03:00
parent 7899b924cd
commit 7ac9ae504d
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
6 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1 @@
../../../modules/keyboards/keychron-v4/default.nix

View File

@ -17,7 +17,7 @@ in {
}; };
users.groups.musikspider = {}; users.groups.musikspider = {};
systemd.services.musikspider= { systemd.services.musikspider = {
description = "musikspider"; description = "musikspider";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
after = ["network.target"]; after = ["network.target"];

View File

@ -4,6 +4,6 @@
supportedLocales = ["en_US.UTF-8/UTF-8" "tr_TR.UTF-8/UTF-8"]; supportedLocales = ["en_US.UTF-8/UTF-8" "tr_TR.UTF-8/UTF-8"];
}; };
time.timeZone = "Turkey"; time.timeZone = "Turkey";
services.xserver.layout = "tr"; services.xserver.layout = "us";
console.keyMap = "trq"; console.keyMap = "us";
} }

View File

@ -17,7 +17,6 @@ in {
./hm-system-defaults.nix ./hm-system-defaults.nix
]; ];
console.font = "7x14";
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
binutils binutils

View File

@ -0,0 +1,3 @@
{
hardware.keyboard.qmk.enable = true;
}

View File

@ -82,9 +82,12 @@
"XF86MonBrightnessDown" = "exec ${light} -T 0.72"; "XF86MonBrightnessDown" = "exec ${light} -T 0.72";
}; };
input = { input = {
"type:keyboard" = { "13364:832:Keychron_Keychron_V4_Keyboard" = {
xkb_layout = nixosConfig.services.xserver.layout; xkb_layout = nixosConfig.services.xserver.layout;
}; };
"1:1:AT_Translated_Set_2_keyboard" = {
xkb_layout = "tr";
};
"type:pointer" = { "type:pointer" = {
accel_profile = "flat"; accel_profile = "flat";
}; };