feat: update

This commit is contained in:
2025-07-25 21:22:24 +08:00
parent 0b413e227c
commit 141f6f1b96
15 changed files with 61 additions and 164 deletions

View File

@@ -6,6 +6,7 @@
}:
{
hardware.nvidia.open = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta;
boot = {
initrd = {
availableKernelModules = [
@@ -21,13 +22,19 @@
};
kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos;
kernelModules = [ "kvm-amd" "mt76x2u" ];
kernelModules = [
"kvm-amd"
"mt76x2u"
];
tmp.useTmpfs = true;
kernel.sysctl = {
"fs.file-max" = 9223372036854775807;
};
};
services.udev.extraRules = ''
ATTR{idVendor}=="0e8d", ATTR{idProduct}=="2870", RUN+="${lib.getExe pkgs.usb-modeswitch} -K -v %s{idVendor} -p %s{idProduct}"
'';
services.scx.enable = true;
fileSystems."/" = {