nixos-combined-flake/modules/nixos/desktop/xorg/default.nix

36 lines
689 B
Nix

{ lib, config, vars, ... }: {
imports = [
./i18n.nix
];
config = {
services.xserver = lib.mkIf config.desktop.enable {
enable = true;
displayManager = {
autoLogin = {
user = vars.username;
enable = true;
};
lightdm = {
enable = true;
greeters.gtk.enable = true;
};
defaultSession = "none+awesome";
};
libinput = {
enable = true;
# disabling mouse acceleration
mouse = {
accelProfile = "flat";
};
# disabling touchpad acceleration
touchpad = {
accelProfile = "flat";
};
};
};
};
}