35 lines
810 B
Nix
35 lines
810 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Enable the X11 windowing system.
|
|
services = {
|
|
dbus = { enable = true; };
|
|
|
|
xserver = {
|
|
enable = true;
|
|
|
|
layout = "us";
|
|
|
|
xkbOptions = "terminate:ctrl_alt_bksp,caps:escape,compose:ralt";
|
|
|
|
videoDrivers = [ "nvidia" ]; # "modesetting" ];
|
|
|
|
displayManager.lightdm = {
|
|
enable = true;
|
|
greeters.slick.enable = true;
|
|
};
|
|
|
|
desktopManager.xfce.enable = true;
|
|
desktopManager.gnome.enable = true;
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
libinput = {
|
|
enable = true;
|
|
touchpad.disableWhileTyping = true;
|
|
touchpad.tapping = false;
|
|
mouse.naturalScrolling =
|
|
config.services.xserver.libinput.touchpad.naturalScrolling;
|
|
};
|
|
};
|
|
};
|
|
}
|