rename common module to nixos
This commit is contained in:
parent
68cc9cbc1d
commit
f22fddbd3e
60 changed files with 1 additions and 1 deletions
37
modules/default/nixos/desktop/games/ROG_Pugio_II_fixes.nix
Normal file
37
modules/default/nixos/desktop/games/ROG_Pugio_II_fixes.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
|
||||
services.udev.extraRules = ''
|
||||
# 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: {
|
||||
postInstall = ''
|
||||
# Ensure the target directory exists
|
||||
mkdir -p $out/share/libratbag/
|
||||
# cat the custom configuration file
|
||||
cat << EOF > $out/share/libratbag/asus-rog-pugio-II.device
|
||||
[Device]
|
||||
Name=ASUS ROG Pugio II
|
||||
DeviceMatch=usb:0b05:1906;usb:0b05:1908
|
||||
Driver=asus
|
||||
|
||||
[Driver/asus]
|
||||
Profiles=3
|
||||
Buttons=10
|
||||
Leds=3
|
||||
Dpis=4
|
||||
Wireless=1
|
||||
DpiRange=100:16000@100
|
||||
ButtonMapping=f0;f1;f2;e4;e5;e6;0;e8;e9;e1;e2
|
||||
EOF
|
||||
'';
|
||||
});
|
||||
};
|
||||
}
|
17
modules/default/nixos/desktop/games/default.nix
Normal file
17
modules/default/nixos/desktop/games/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
||||
./ROG_Pugio_II_fixes.nix
|
||||
./emulation.nix
|
||||
./mangohud.nix
|
||||
./minecraft.nix
|
||||
./moonlight.nix
|
||||
./steam.nix
|
||||
./tetrio.nix
|
||||
./yuzu.nix
|
||||
|
||||
];
|
||||
|
||||
}
|
10
modules/default/nixos/desktop/games/emulation.nix
Normal file
10
modules/default/nixos/desktop/games/emulation.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.emulation.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
melonDS
|
||||
dolphin-emu
|
||||
#lime3ds
|
||||
cemu
|
||||
steam-rom-manager
|
||||
];
|
||||
}
|
6
modules/default/nixos/desktop/games/mangohud.nix
Normal file
6
modules/default/nixos/desktop/games/mangohud.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
];
|
||||
}
|
6
modules/default/nixos/desktop/games/minecraft.nix
Normal file
6
modules/default/nixos/desktop/games/minecraft.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
}
|
8
modules/default/nixos/desktop/games/moonlight.nix
Normal file
8
modules/default/nixos/desktop/games/moonlight.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.moonlight-qt
|
||||
];
|
||||
|
||||
}
|
16
modules/default/nixos/desktop/games/steam.nix
Normal file
16
modules/default/nixos/desktop/games/steam.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ lib, config, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
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"
|
||||
'';
|
||||
|
||||
}
|
8
modules/default/nixos/desktop/games/tetrio.nix
Normal file
8
modules/default/nixos/desktop/games/tetrio.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.tetrio-desktop
|
||||
];
|
||||
|
||||
}
|
6
modules/default/nixos/desktop/games/yuzu.nix
Normal file
6
modules/default/nixos/desktop/games/yuzu.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
lib.mkIf config.desktop.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
yuzu
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue