chore: misc nixos.nix changes

This commit is contained in:
Alexandre Cavalheiro 2024-01-31 18:37:02 -03:00
parent 448e3b6f6a
commit 8f92d51960
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -44,7 +44,7 @@
## ##
# Kernel # Kernel
boot.kernelPackages = pkgs.linuxPackages-rt_latest; boot.kernelPackages = pkgs.linuxPackages_xanmod_stable;
# Add AMD drivers. # Add AMD drivers.
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
@ -75,15 +75,16 @@
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
80 # HTTP
11753 # OpenRCT2 11753 # OpenRCT2
443 # SSL 443 # SSL
80 # HTTP
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
2626 # Dolphin emulator
11753 # OpenRCT2 11753 # OpenRCT2
2626 # Dolphin emulator
27015 # Source games 27015 # Source games
8211 # Palworld
]; ];
allowedTCPPortRanges = [ allowedTCPPortRanges = [
@ -170,6 +171,9 @@
# Enable xpadneo support. # Enable xpadneo support.
hardware.xpadneo.enable = true; hardware.xpadneo.enable = true;
# Enable fstrim for better ssd lifespan
services.fstrim.enable = true;
## ##
## DESKTOP ## ## DESKTOP ##
## ##
@ -285,6 +289,7 @@
## Libraries ## Libraries
libsForQt5.qt5.qtgraphicaleffects libsForQt5.qt5.qtgraphicaleffects
libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtquickcontrols2
pkgsi686Linux.gperftools # Needed for TF2 rn :(
## Hardware specific ## Hardware specific
openrazer-daemon # Razor products back-end openrazer-daemon # Razor products back-end