organize game related config

This commit is contained in:
willifan 2024-06-16 19:57:45 +02:00
parent 754fd5965b
commit 0a8bb06aeb
6 changed files with 38 additions and 18 deletions

View file

@ -4,13 +4,12 @@
imports = [ imports = [
./dev ./dev
./games
./hyprland ./hyprland
./theme ./theme
./firefox.nix ./firefox.nix
./kitty.nix ./kitty.nix
./minecraft.nix
./steam.nix
./thunar.nix ./thunar.nix
./thunderbird.nix ./thunderbird.nix
]; ];

View file

@ -1,27 +1,14 @@
{ pkgs, home-manager, ... }: { pkgs, ... }:
{ {
programs.steam = {
enable = true;
gamescopeSession = {
enable = true;
};
};
environment.systemPackages = with pkgs; [
mangohud
];
hardware.steam-hardware.enable = true;
services.udev.extraRules = '' services.udev.extraRules = ''
SUBSYSTEM=="tty", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2102", MODE="0660", TAG+="uaccess"
# Disable mouse as gamepad # 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}=="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}=="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}=="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'" 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 = { services.ratbagd = {
enable = true; enable = true;
package = pkgs.libratbag.overrideAttrs (previousAttrs: rec { package = pkgs.libratbag.overrideAttrs (previousAttrs: rec {
@ -47,5 +34,4 @@ EOF
''; '';
}); });
}; };
} }

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
imports = [
./mangohud.nix
./minecraft.nix
./ROG_Pugio_II_fixes.nix
./steam.nix
];
}

View file

@ -0,0 +1,6 @@
{ pkgs, homa-manager, ... }:
{
environment.systemPackages = with pkgs; [
mangohud
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, home-manager, ... }:
{
programs.steam = {
enable = true;
gamescopeSession = {
enable = true;
};
};
hardware.steam-hardware.enable = true;
services.udev.extraRules = ''
SUBSYSTEM=="tty", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2102", MODE="0660", TAG+="uaccess"
'';
}