1 { config, lib, pkgs, modulesPath, ... }:
4 imports = [ (modulesPath + "/profiles/qemu-guest.nix") ../shared.nix ];
6 boot.initrd.availableKernelModules =
7 [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ];
8 boot.initrd.kernelModules = [ ];
9 boot.kernelModules = [ ];
10 boot.extraModulePackages = [ ];
11 boot.loader.grub.enable = true;
12 boot.loader.grub.devices = [ "/dev/sda" ];
14 fileSystems."/" = { device = "/dev/sda1"; };
18 networking.useDHCP = false;
19 networking.interfaces.ens3.useDHCP = true; # public IP
20 networking.interfaces.ens10.useDHCP = true; # first internal network
22 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";