summaryrefslogtreecommitdiff
path: root/host/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'host/hardware')
-rw-r--r--host/hardware/automatix.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/host/hardware/automatix.nix b/host/hardware/automatix.nix
index 4b35109..cdf3a9b 100644
--- a/host/hardware/automatix.nix
+++ b/host/hardware/automatix.nix
@@ -4,11 +4,15 @@
{ config, lib, pkgs, ... }:
{
- imports =
- [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix>
- ];
-
- boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
+ boot.initrd.kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
+ boot.initrd.postDeviceCommands =
+ ''
+ # Set the system time from the hardware clock to work around a
+ # bug in qemu-kvm > 1.5.2 (where the VM clock is initialised
+ # to the *boot time* of the host).
+ hwclock -s
+ '';
+ boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
@@ -21,5 +25,5 @@
[ { device = "/dev/disk/by-uuid/05f0315c-f5f5-4471-b2ef-6e53b95cb08b"; }
];
- nix.maxJobs = lib.mkDefault 1;
+ nix.settings.max-jobs = lib.mkDefault 1;
}