NixOS configs
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.

33 lines
888 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. boot.initrd.availableKernelModules = [
  15. "ahci" "xhci_pci" "virtio_pci"
  16. "sr_mod" "virtio_blk"
  17. ];
  18. boot.initrd.kernelModules = [ ];
  19. boot.kernelModules = [ "kvm-intel" ];
  20. boot.extraModulePackages = [ ];
  21. fileSystems."/" =
  22. { device = "/dev/disk/by-label/nixos";
  23. fsType = "ext4";
  24. };
  25. networking.useDHCP = lib.mkDefault true;
  26. hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  27. }