nixos-config/system/desktop/x11.nix

25 lines
765 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, pkgs, lib, ... }: {
2019-10-24 02:20:38 +02:00
2019-12-20 05:54:26 +01:00
environment.systemPackages = with pkgs; [ xclip xtrlock-pam xorg.xev ];
2019-10-24 02:20:38 +02:00
system.custom.x11 = {
2021-03-05 16:01:24 +01:00
enable = lib.mkDefault true;
2019-10-24 02:20:38 +02:00
autoLoginUser = config.users.users.mainUser.name;
};
system.custom.fonts.enable = true;
2020-07-12 16:17:43 +02:00
# xinput list < to show devices
# https://unix.stackexchange.com/questions/90572/how-can-i-set-mouse-sensitivity-not-just-mouse-acceleration
2020-09-03 00:08:52 +02:00
#services.xserver.displayManager.sessionCommands = let
# mouseSpeed = name: speed: ''
# ${pkgs.xlibs.xinput}/bin/xinput set-prop "${name}" "Coordinate Transformation Matrix" ${
# toString speed
# } 0 0 0 ${toString speed} 0 0 0 1 || true
# '';
#in lib.concatStringsSep "\n"
#[ (mouseSpeed "Logitech Gaming Mouse G400" 3.1) ];
2020-07-12 16:17:43 +02:00
2019-10-24 02:20:38 +02:00
}