Enable fstrim

This commit is contained in:
SebastianStork 2024-07-16 12:35:16 +02:00
parent bd8e8cbea1
commit 0051f45c22
2 changed files with 12 additions and 10 deletions

View file

@ -12,7 +12,10 @@
swapDevices = [ { device = "/dev/disk/by-uuid/1eba93d1-4853-4534-8cfd-5c14e29c6ff6"; } ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
boot.kernelModules = [ "kvm-amd" ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
@ -20,9 +23,7 @@
"usb_storage"
"sd_mod"
];
boot.kernelModules = [ "kvm-amd" ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
zramSwap.enable = true;
services.fstrim.enable = true;
}