updates :3

This commit is contained in:
zack 2025-05-06 20:02:36 -04:00
parent 825f05c50a
commit dd60fce00f
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
20 changed files with 1360 additions and 565 deletions

View file

@ -112,9 +112,28 @@ in {
};
config = mkIf cfg.enable {
boot.kernelParams = ["intel_iommu=on" "iommu=pt"];
boot.kernelParams = ["intel_iommu=on" "iommu=pt" "transparent_hugepage=always"];
boot.kernelModules = ["vfio-pci"];
# CachyOS-inspired system performance tweaks
boot.kernel.sysctl = {
# Virtual memory tweaks
"vm.swappiness" = 10;
"vm.dirty_background_ratio" = 5;
"vm.dirty_ratio" = 10;
"vm.vfs_cache_pressure" = 50;
"vm.max_map_count" = 16777216;
# Network optimizations
"net.core.netdev_max_backlog" = 16384;
"net.ipv4.tcp_fastopen" = 3;
"net.ipv4.tcp_max_syn_backlog" = 8192;
"net.core.somaxconn" = 8192;
# IO scheduler optimizations
"kernel.sched_autogroup_enabled" = 0;
};
virtualisation.libvirtd = {
enable = true;
onBoot = "ignore";
@ -219,16 +238,6 @@ in {
text = stopScript;
mode = "0755";
};
"libvirt/hooks/qemu.d/bazzite/prepare/begin/start.sh" = {
text = startScript;
mode = "0755";
};
"libvirt/hooks/qemu.d/bazzite/release/end/stop.sh" = {
text = stopScript;
mode = "0755";
};
};
};
}