{ lib, modulesPath, ... }: { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot = { tmp.cleanOnBoot = true; kernel.sysctl = { "net.core.default_qdisc" = "fq"; "net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.conf.all.rp_filter" = 1; "net.ipv4.conf.default.rp_filter" = 1; "net.ipv4.icmp_echo_ignore_broadcasts" = 1; "net.ipv4.conf.all.accept_source_route" = 0; "net.ipv6.conf.all.accept_source_route" = 0; "net.ipv4.conf.all.send_redirects" = 0; "net.ipv4.tcp_syncookies" = 1; }; loader.grub = { enable = true; device = "/dev/sda"; }; kernelModules = [ "virtio_pci" "virtio_blk" "virtio_net" ]; initrd = { availableKernelModules = [ "virtio_pci" "virtio_scsi" "virtio_blk" "virtio_net" "9p" "9pnet_virtio" ]; kernelModules = [ ]; }; extraModulePackages = [ ]; }; fileSystems."/" = { device = "/dev/sda"; fsType = "ext4"; }; swapDevices = [ { device = "/dev/sdb"; } ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.enableRedistributableFirmware = true; }