organize game related config
This commit is contained in:
parent
754fd5965b
commit
0a8bb06aeb
6 changed files with 38 additions and 18 deletions
|
@ -4,13 +4,12 @@
|
|||
|
||||
imports = [
|
||||
./dev
|
||||
./games
|
||||
./hyprland
|
||||
./theme
|
||||
|
||||
./firefox.nix
|
||||
./kitty.nix
|
||||
./minecraft.nix
|
||||
./steam.nix
|
||||
./thunar.nix
|
||||
./thunderbird.nix
|
||||
];
|
||||
|
|
|
@ -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
|
|||
'';
|
||||
});
|
||||
};
|
||||
|
||||
}
|
13
users/willifan/graphical/games/default.nix
Normal file
13
users/willifan/graphical/games/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
||||
./mangohud.nix
|
||||
./minecraft.nix
|
||||
./ROG_Pugio_II_fixes.nix
|
||||
./steam.nix
|
||||
|
||||
];
|
||||
|
||||
}
|
6
users/willifan/graphical/games/mangohud.nix
Normal file
6
users/willifan/graphical/games/mangohud.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, homa-manager, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
];
|
||||
}
|
16
users/willifan/graphical/games/steam.nix
Normal file
16
users/willifan/graphical/games/steam.nix
Normal 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"
|
||||
'';
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue