{ modulesPath, inputs, ... }: { imports = [ inputs.disko.nixosModules.default "${modulesPath}/profiles/qemu-guest.nix" ]; nixpkgs.hostPlatform = "x86_64-linux"; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; zramSwap.enable = true; networking.useDHCP = false; systemd.network = { enable = true; networks."10-enp1s0" = { matchConfig.Name = "enp1s0"; linkConfig.RequiredForOnline = "routable"; networkConfig.DHCP = "no"; address = [ "91.99.70.118/32" "2a01:4f8:1c1b:ffc7:1/64" ]; routes = [ { Gateway = "172.31.1.1"; GatewayOnLink = true; } { Gateway = "fe80::1"; } ]; }; }; services.resolved.enable = true; }