Fix logitech mouse button ordering

This commit is contained in:
Evie Litherland-Smith 2023-04-01 12:23:20 +01:00
parent ef9d501d9b
commit 2bb7554a89

View file

@ -9,6 +9,11 @@
networking.hostName = "Vanguard"; # Define your hostname.
environment.systemPackages = with pkgs; [
clinfo
glxinfo
];
# Define a user account. Don't forget to set a password with passwd.
users.users.xenia = {
isNormalUser = true;
@ -17,13 +22,23 @@
shell = pkgs.fish;
};
# Enable automatic login for the user.
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "xenia";
services.xserver.displayManager = {
# Enable automatic login for the user.
autoLogin = {
enable = true;
user = "xenia";
};
# Fix Logitech MX Master buttons being inverted
sessionCommands = ''
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
'';
};
# Set up home manager for user
home-manager.users.xenia = import ./home-manager/vanguard-xenia.nix;
# For Steam support
hardware.opengl.driSupport32Bit = true;
hardware.bluetooth.enable = true;
}