From 2bb7554a89d2f6a300278ef9abf55e362dd3aa48 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 1 Apr 2023 12:23:20 +0100 Subject: [PATCH] Fix logitech mouse button ordering --- nixos/vanguard-xenia.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/nixos/vanguard-xenia.nix b/nixos/vanguard-xenia.nix index cd811737..f95e0e71 100644 --- a/nixos/vanguard-xenia.nix +++ b/nixos/vanguard-xenia.nix @@ -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; }