nixos/desktop/hardware.nix
2026-10-28 13:28:36 +09:00

24 lines
635 B
Nix

{ config, lib, ... }: {
boot = {
initrd = {
availableKernelModules = [
"nvme"
"rtsx_usb_sdmmc"
"sd_mod"
"usb_storage"
"xhci_pci"
];
luks.devices.root.device = "/dev/disk/by-uuid/70ac6613-2e6c-4817-a0ce-43a97efb8bab";
};
kernelModules = [ "kvm-amd" ];
kernelParams = [ "ttm.pages_limit=3014656" ];
};
fileSystems."/boot".device = "/dev/disk/by-uuid/2610-A769";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
swapDevices = [
{
device = "/var/lib/swapfile";
size = 15 * 1024;
}
];
}