diff --git a/hosts/stonehenge/vagrant.nix b/hosts/stonehenge/vagrant.nix index 33ac64b..53a61fa 100644 --- a/hosts/stonehenge/vagrant.nix +++ b/hosts/stonehenge/vagrant.nix @@ -4,17 +4,7 @@ let #!${pkgs.bash}/bin/bash set -euo pipefail - export PATH="${ - pkgs.lib.makeBinPath ( - with pkgs; - [ - vagrant - curl - openssh - virtualbox - ] - ) - }:$PATH" + export PATH="${pkgs.lib.makeBinPath (with pkgs; [ vagrant curl openssh virtualbox ])}:$PATH" export VNODE_NAME=vnode-05 cd /home/user/kubernetes-cluster/vnodes @@ -22,11 +12,7 @@ let ''; in { - environment.systemPackages = with pkgs; [ - vagrant - curl - openssh - ]; + environment.systemPackages = with pkgs; [ vagrant curl openssh ]; users.users.user.extraGroups = [ "vboxusers" ]; @@ -40,17 +26,7 @@ in ExecStart = "${vagrantScript}/bin/vagrant-vnode-05"; User = "user"; WorkingDirectory = "/home/user/kubernetes-cluster/vnodes"; - Environment = "PATH=${ - pkgs.lib.makeBinPath ( - with pkgs; - [ - vagrant - curl - openssh - virtualbox - ] - ) - }:$PATH"; + Environment = "PATH=${pkgs.lib.makeBinPath (with pkgs; [ vagrant curl openssh virtualbox ])}:$PATH"; }; wantedBy = [ "multi-user.target" ]; }; diff --git a/system/mouse.nix b/system/mouse.nix index c09ccdd..b5d5b16 100644 --- a/system/mouse.nix +++ b/system/mouse.nix @@ -1,4 +1,15 @@ { # Allow configuring Logitech Peripherals services.ratbagd.enable = true; + + # Sway does not undersand high resolution scroll wheels + # I don't need this, so I disable it + environment.etc."libinput/local-overrides.quirks".text = '' + [Logitech G502 X PLUS] + MatchUdevType=mouse + MatchBus=usb + MatchVendor=0x046D + MatchProduct=0x4099 + AttrEventCode=-REL_WHEEL_HI_RES + ''; }