nix/hosts/prefect/bootloader.nix

24 lines
548 B
Nix
Raw Normal View History

{
pkgs,
lib,
modulesPath,
...
}: {
2022-07-16 02:05:23 +00:00
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
boot = {
cleanTmpDir = true;
loader = {
grub.device = "/dev/sda";
};
2022-07-16 02:05:23 +00:00
initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
initrd.kernelModules = ["nvme"];
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1;
"net.ipv4.conf.default.rp_filter" = 0;
"net.ipv4.conf.all.rp_filter" = 0;
};
};
}