You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
946 B

2 years ago
  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. { config, lib, pkgs, modulesPath, ... }:
  5. {
  6. imports =
  7. [ (modulesPath + "/profiles/qemu-guest.nix") ];
  8. # Use the systemd-boot EFI boot loader.
  9. boot.loader.grub = {
  10. enable = true;
  11. version = 2;
  12. device = "/dev/vda";
  13. };
  14. networking.hostName = "nixbox"; # Define your hostname.
  15. boot.initrd.availableKernelModules = [
  16. "ahci" "xhci_pci" "virtio_pci"
  17. "sr_mod" "virtio_blk"
  18. ];
  19. boot.initrd.kernelModules = [ ];
  20. boot.kernelModules = [ "kvm-intel" ];
  21. boot.extraModulePackages = [ ];
  22. fileSystems."/" =
  23. { device = "/dev/disk/by-label/nixos";
  24. fsType = "ext4";
  25. };
  26. networking.useDHCP = lib.mkDefault true;
  27. hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  28. }