Ayo the pizza here (restructuring)
This commit is contained in:
44
modules/xorg.nix
Normal file
44
modules/xorg.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
{ config, lib, ... }:
|
||||
|
||||
#let
|
||||
# compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
|
||||
# ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./colemak-dh.xkb} $out
|
||||
# '';
|
||||
#in
|
||||
{
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
libinput= {
|
||||
enable = true;
|
||||
mouse = {
|
||||
accelSpeed = "0";
|
||||
};
|
||||
touchpad = {
|
||||
middleEmulation = false;
|
||||
clickMethod = "buttonareas";
|
||||
tapping = true;
|
||||
naturalScrolling =true;
|
||||
};
|
||||
};
|
||||
displayManager = {
|
||||
startx = {
|
||||
enable = true;
|
||||
};
|
||||
# sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
|
||||
};
|
||||
extraLayouts = {
|
||||
us-colemak = {
|
||||
description = "Colemak with MOD-dh";
|
||||
languages = [ "eng" ];
|
||||
symbolsFile = ./colemak-dh;
|
||||
};
|
||||
};
|
||||
layout = "us-colemak";
|
||||
xkbVariant = "basic";
|
||||
autoRepeatDelay = 320;
|
||||
autoRepeatInterval = 30;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user