45 lines
978 B
Nix
45 lines
978 B
Nix
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
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 = {
|
|
"/" = {
|
|
device = "/dev/mapper/root";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/2610-A769";
|
|
fsType = "vfat";
|
|
options = [
|
|
"dmask=0077"
|
|
"fmask=0077"
|
|
];
|
|
};
|
|
};
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
swapDevices = [
|
|
{
|
|
device = "/var/lib/swapfile";
|
|
size = 15 * 1024;
|
|
}
|
|
];
|
|
}
|