summaryrefslogblamecommitdiffstats
path: root/systems/jontest/default.nix
blob: b2a7f82b621b81fea38ae82591ebfb64bb0b1ad5 (plain) (tree)





















                                                                                                              
{ lib, modulesPath, pkgs, ... }:

{
  imports =
  [ # Include the results of the hardware scan.
    (modulesPath + "/profiles/qemu-guest.nix")
    ./filesystem.nix
  ];

  boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
  boot.kernelPackages = pkgs.linuxPackages_latest;

  # Bootloader.
  boot.loader.grub.enable = true;
  boot.loader.grub.device = "/dev/vda";
  boot.loader.grub.useOSProber = true;

  services.qemuGuest.enable = true;
  services.spice-vdagentd.enable = true;

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}