From e01f4bbf61cb8d462e4008256bc46379bcf36329 Mon Sep 17 00:00:00 2001 From: willifan Date: Thu, 23 May 2024 19:05:13 +0200 Subject: [PATCH 1/3] added reqired rustup dependencies --- users/willifan/graphical/dev/rust.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/willifan/graphical/dev/rust.nix b/users/willifan/graphical/dev/rust.nix index 53031b9..80d33b3 100644 --- a/users/willifan/graphical/dev/rust.nix +++ b/users/willifan/graphical/dev/rust.nix @@ -2,9 +2,13 @@ { environment.systemPackages = with pkgs; [ + clang + gcc + llvmPackages.bintools rustup + probe-rs cargo-binutils ]; -} \ No newline at end of file +} From e2a5d71e6ea6295c63ab3d1223b8d3d0267680de Mon Sep 17 00:00:00 2001 From: willifan Date: Thu, 23 May 2024 21:13:52 +0200 Subject: [PATCH 2/3] enable steam gamescope session --- users/willifan/graphical/steam.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/users/willifan/graphical/steam.nix b/users/willifan/graphical/steam.nix index 7317792..6708d60 100644 --- a/users/willifan/graphical/steam.nix +++ b/users/willifan/graphical/steam.nix @@ -1,6 +1,11 @@ { pkgs, home-manager, ... }: { - programs.steam.enable = true; + programs.steam = { + enable = true; + gamescopeSession = { + enable = true; + }; + }; hardware.steam-hardware.enable = true; From 458f4aeb384e7563837b70f42abe225ed6bd4747 Mon Sep 17 00:00:00 2001 From: willifan Date: Thu, 23 May 2024 21:57:30 +0200 Subject: [PATCH 3/3] fix mouse getting recognized as gamepad --- users/willifan/applications.nix | 4 ++++ users/willifan/graphical/hyprland/common/hyprland.nix | 2 +- users/willifan/graphical/steam.nix | 8 ++++++++ users/willifan/user.nix | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/users/willifan/applications.nix b/users/willifan/applications.nix index f0965c0..ad6be59 100644 --- a/users/willifan/applications.nix +++ b/users/willifan/applications.nix @@ -20,5 +20,9 @@ obsidian kicad + piper + + virtualbox + ]; } diff --git a/users/willifan/graphical/hyprland/common/hyprland.nix b/users/willifan/graphical/hyprland/common/hyprland.nix index b403af2..9c4d244 100644 --- a/users/willifan/graphical/hyprland/common/hyprland.nix +++ b/users/willifan/graphical/hyprland/common/hyprland.nix @@ -44,7 +44,7 @@ touchpad.natural_scroll = "yes"; - sensitivity = -0.8; # -1.0 - 1.0, 0 means no modification. + sensitivity = 0; # -1.0 - 1.0, 0 means no modification. numlock_by_default = 1; special_fallthrough = true; }; diff --git a/users/willifan/graphical/steam.nix b/users/willifan/graphical/steam.nix index 6708d60..106f8c8 100644 --- a/users/willifan/graphical/steam.nix +++ b/users/willifan/graphical/steam.nix @@ -11,5 +11,13 @@ services.udev.extraRules = '' SUBSYSTEM=="tty", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2102", MODE="0660", TAG+="uaccess" + + # Disable mouse as gamepad + ACTION=="add", SUBSYSTEM=="input", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="1906", RUN+="/bin/sh -c 'chmod 000 /dev/input/by-id/usb-ASUSTeK_ROG_PUGIO_II-if03-joystick'" + ACTION=="add", SUBSYSTEM=="input", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="1908", RUN+="/bin/sh -c 'chmod 000 /dev/input/by-id/usb-ASUSTeK_ROG_PUGIO_II-if03-joystick'" + ACTION=="add", SUBSYSTEM=="input", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="1906", RUN+="/bin/sh -c 'chmod 000 /dev/input/by-id/usb-ASUSTeK_ROG_PUGIO_II-if03-event-joystick'" + ACTION=="add", SUBSYSTEM=="input", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="1908", RUN+="/bin/sh -c 'chmod 000 /dev/input/by-id/usb-ASUSTeK_ROG_PUGIO_II-if03-event-joystick'" ''; + services.ratbagd.enable = true; + } \ No newline at end of file diff --git a/users/willifan/user.nix b/users/willifan/user.nix index c2892f7..c6e4f9b 100644 --- a/users/willifan/user.nix +++ b/users/willifan/user.nix @@ -6,4 +6,5 @@ extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; []; }; + } \ No newline at end of file