Compare commits
3 commits
1bfbff4b69
...
0a8bb06aeb
Author | SHA1 | Date | |
---|---|---|---|
|
0a8bb06aeb | ||
|
754fd5965b | ||
|
76c477b6d4 |
7 changed files with 63 additions and 18 deletions
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"[nix]"."editor.tabSize" = 2;
|
"[nix]"."editor.tabSize" = 2;
|
||||||
"explorer.confirmDragAndDrop" = false;
|
"explorer.confirmDragAndDrop" = false;
|
||||||
"cmake.showOptionsMovedNotification" = false;
|
"cmake.showOptionsMovedNotification" = false;
|
||||||
|
"extensions.autoUpdate" = false;
|
||||||
};
|
};
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
# System
|
# System
|
||||||
|
|
|
@ -1,27 +1,37 @@
|
||||||
{ 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.enable = true;
|
|
||||||
|
|
||||||
|
services.ratbagd = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.libratbag.overrideAttrs (previousAttrs: rec {
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
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
Add a link
Reference in a new issue