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 = [
./dev
./games
./hyprland
./theme
./firefox.nix
./kitty.nix
./minecraft.nix
./steam.nix
./thunar.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 = ''
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;
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"
'';
}