yeyeyeyeyye

This commit is contained in:
2025-12-15 12:45:40 -06:00
parent 0ace7b6ad1
commit 8bf191eefc
6 changed files with 109 additions and 168 deletions

View File

@@ -1,4 +1,4 @@
# Edit this configuration file to define what should be installed on
#Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
@@ -17,7 +17,6 @@
boot.loader.grub.efiSupport = true;
boot.initrd.systemd.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.timeoutStyle = "hidden";
services.avahi = {
enable = true;
nssmdns4 = true;
@@ -44,6 +43,7 @@ boot = {
consoleLogLevel = 0;
initrd.verbose = false;
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = [ "amdgpu" ];
kernelPatches = [
/*{
name = "dsc";
@@ -67,10 +67,13 @@ boot = {
"rd.udev.log_level=3"
"udev.log_priority=3"
];
extraModprobeConfig = ''
options bluetooth disable_ertm=Y
'';
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
loader.timeout = 5;
};
@@ -79,7 +82,7 @@ boot = {
ACTION=="add", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="35bd", ATTRS{idProduct}=="0101", TAG+="uaccess", MODE="0660"
'';
boot.extraModulePackages = with config.boot.kernelPackages; [ hid-tmff2 ];
boot.extraModulePackages = with config.boot.kernelPackages; [ hid-tmff2 xpadneo ];
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@@ -93,7 +96,8 @@ boot = {
hardware.bluetooth.enable = true;
hardware.bluetooth.package = pkgs.bluez;
hardware.xpadneo.enable = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-31.7.7"
@@ -251,16 +255,16 @@ boot = {
{
name = "libpipewire-module-protocol-pulse";
args = {
pulse.min.req = "32/48000";
pulse.default.req = "32/48000";
pulse.max.req = "32/48000";
pulse.min.quantum = "32/48000";
pulse.max.quantum = "32/48000";
pulse.min.req = "128/48000";
pulse.default.req = "128/48000";
pulse.max.req = "128/48000";
pulse.min.quantum = "128/48000";
pulse.max.quantum = "128/48000";
};
}
];
stream.properties = {
node.latency = "32/48000";
node.latency = "128/48000";
resample.quality = 1;
};
};
@@ -362,12 +366,12 @@ services.pulseaudio.extraConfig = ''
killall
usbutils
mangohud
ffmpeg
oversteer
# cemu broken with latest update
oterm
wget
wlx-overlay-s
labymod-launcher
unzip
winetricks
cowsay
@@ -406,7 +410,7 @@ services.pulseaudio.extraConfig = ''
services.flatpak.enable = true;
services.xserver.enableTCP = true;
services.sunshine = {
enable = true;
autoStart = false;
@@ -433,7 +437,7 @@ services.pulseaudio.extraConfig = ''
XRT_COMPOSITOR_COMPUTE = "1";
WMR_HANDTRACKING = "0";
};
programs.alvr.enable = false;
programs.alvr.enable = true;
programs.alvr.openFirewall = true;
@@ -479,8 +483,8 @@ services.pulseaudio.extraConfig = ''
services.openssh.settings.PasswordAuthentication = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 7860 3042 3246 9943 9944 7801 11434 47990 48010 5001 ];
networking.firewall.allowedUDPPorts = [ 7860 9943 9944 3042 47990 3246 11434 7801 4800 48010 ];
networking.firewall.allowedTCPPorts = [ 7860 3042 3246 9943 9944 7801 11434 47990 48010 5001 8188 ];
networking.firewall.allowedUDPPorts = [ 7860 8188 9943 9944 3042 47990 3246 11434 7801 4800 48010 ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;