default.nix (1146B)
1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 # and may be overwritten by future invocations. Please make changes 3 # to /etc/nixos/configuration.nix instead. 4 { 5 config, 6 lib, 7 pkgs, 8 modulesPath, 9 ... 10 }: 11 12 { 13 imports = [ 14 (modulesPath + "/profiles/qemu-guest.nix") 15 ]; 16 17 boot.initrd.availableKernelModules = [ 18 "ata_piix" 19 "uhci_hcd" 20 "virtio_pci" 21 "virtio_scsi" 22 "sd_mod" 23 "sr_mod" 24 ]; 25 boot.initrd.kernelModules = [ ]; 26 boot.kernelModules = [ ]; 27 boot.extraModulePackages = [ ]; 28 29 boot.loader.grub = { 30 efiSupport = true; 31 efiInstallAsRemovable = true; 32 }; 33 34 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 35 # (the default) this is the recommended approach. When using systemd-networkd it's 36 # still possible to use this option, but it's recommended to use it in conjunction 37 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 38 networking.useDHCP = lib.mkDefault true; 39 # networking.interfaces.ens3.useDHCP = lib.mkDefault true; 40 41 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 42 }