2022-05-16 22:36:15 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2022-07-11 22:02:50 +00:00
|
|
|
modulesPath,
|
2022-05-16 22:36:15 +00:00
|
|
|
...
|
|
|
|
}: {
|
2022-07-16 02:05:23 +00:00
|
|
|
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
2022-05-16 22:36:15 +00:00
|
|
|
boot = {
|
2022-07-11 22:02:50 +00:00
|
|
|
cleanTmpDir = true;
|
2022-05-16 22:36:15 +00:00
|
|
|
loader = {
|
2022-07-11 22:02:50 +00:00
|
|
|
grub.device = "/dev/sda";
|
2022-05-16 22:36:15 +00:00
|
|
|
};
|
2022-07-16 02:05:23 +00:00
|
|
|
initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
|
|
|
initrd.kernelModules = ["nvme"];
|
2022-05-16 22:36:15 +00:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2022-08-20 19:45:06 +00:00
|
|
|
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;
|
|
|
|
};
|
2022-05-16 22:36:15 +00:00
|
|
|
};
|
|
|
|
}
|