Files
dotfiles/hosts/satori/xorg.nix

45 lines
980 B
Nix

{ config, lib, ... }:
#let
# compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
# ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./colemak-dh.xkb} $out
# '';
#in
{
console.useXkbConfig = true;
services = {
xserver = {
enable = true;
libinput = {
enable = true;
mouse = {
accelSpeed = "0";
# accelProfile = "flat";
};
touchpad = {
middleEmulation = false;
clickMethod = "buttonareas";
tapping = true;
naturalScrolling = true;
};
};
displayManager = {
startx = {
enable = true;
};
};
extraLayouts = {
colemak = {
description = "Colemak Layouts";
languages = [ "eng" ];
symbolsFile = ./colemak;
};
};
layout = "colemak";
xkbVariant = "dhz"; # trying to ditch DHz now
autoRepeatDelay = 320;
autoRepeatInterval = 30;
};
};
}