sorted some hardware stuff, moved group declarations to respective modules

This commit is contained in:
serenity-F 2026-04-19 16:03:16 +10:00
parent d26bfde998
commit 97cbf36a50
No known key found for this signature in database
4 changed files with 58 additions and 52 deletions

View file

@ -1,45 +1,33 @@
{ pkgs, inputs, user, ... }:
{
# Adding primary user to gamemode group
users.users.${user}.extraGroups = [ "gamemode" ];
# Gaming mouse config
services.ratbagd.enable = true;
# Enable 32bit graphics support
hardware.graphics.enable32Bit = true;
# Open tablet driver, for Osu!, mainly.
hardware.opentabletdriver = {
enable = true; # Enables the driver lol
daemon.enable = true; # Enables the daemon via systemd
blacklistedKernelModules = [
# Disable conflicting drivers
blacklistedKernelModules = [ # Disable conflicting drivers
"hid-uclogic"
"wacom"
];
};
# Open Razer stuff
hardware.openrazer = {
enable = true;
users = [ "${user}" ];
};
hardware.graphics.enable32Bit = true;
services.ratbagd.enable = true; # ratbagd for gaming mouse config
environment = {
# Games and misc.
systemPackages = with pkgs; [
piper # Open mouse config
razergenie # Razer peripherals
openrazer-daemon # Razer peripherals
vassal # FOSSy board game sim
cockatrice # Magical the gathering, but free
prismlauncher # Modded Minecraft client
osu-lazer-bin # Rhythm is just a click away!
inputs.nix-gaming.packages.${pkgs.system}.osu-mime
#inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin # Not using this one but still want it here lol
#inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
];
# These are important apparently :uh:
@ -48,21 +36,21 @@
XDG_CONFIG_HOME = "$HOME/.config";
XDG_BIN_HOME = "$HOME/.local/bin";
XDG_DATA_HOME = "$HOME/.local/share";
## Steam needs this to find Proton-GE
# Steam needs this to find Proton-GE
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
## Note: this doesn't replace PATH, it just adds this to it
# Note: this doesn't replace PATH, it just adds this to it
PATH = [ "\${XDG_BIN_HOME}" ];
NIXOS_OZONE_WL = "1";
SDL_VIDEODRIVER = "x11,wayland,windows";
};
};
## TIDY BELOW ##
programs = {
# Java, just in case i guess ?
java.enable = true;
# This should help games run more betterer
gamescope = {
enable = true;
@ -117,7 +105,6 @@
# Gotta have the glorious eggroll
extraCompatPackages = with pkgs; [ proton-ge-bin ];
};
};
}