split system/gui into system/input

This commit is contained in:
LavaDesu 2021-07-15 19:07:57 +07:00
parent c86be50084
commit 4e8e8f0fed
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 20 additions and 13 deletions

View file

@ -16,6 +16,7 @@
audio audio
gui gui
hardware-configuration hardware-configuration
input
kernel kernel
networking networking
packages packages
@ -43,6 +44,5 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
console.useXkbConfig = true;
} }

View file

@ -28,19 +28,7 @@
displayManager = { displayManager = {
lightdm.enable = lib.mkForce false; lightdm.enable = lib.mkForce false;
startx.enable = true; startx.enable = true;
xserverArgs = [
"-ardelay 250"
"-arinterval 15"
];
}; };
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;
libinput = {
enable = true;
mouse = {
accelSpeed = "0";
accelProfile = "flat";
};
};
xkbOptions = "caps:escape";
}; };
} }

19
modules/system/input.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }: {
services.xserver = {
displayManager = {
xserverArgs = [
"-ardelay 250"
"-arinterval 15"
];
};
libinput = {
enable = true;
mouse = {
accelSpeed = "0";
accelProfile = "flat";
};
};
xkbOptions = "caps:escape";
};
console.useXkbConfig = true;
}