diff --git a/nix/libvirtd.nix b/nix/libvirtd.nix index bb67803..25682e9 100644 --- a/nix/libvirtd.nix +++ b/nix/libvirtd.nix @@ -176,6 +176,12 @@ in boot.loader.grub.device = "/dev/sda"; boot.loader.timeout = 0; + imports = + [ + ]; + boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_blk" "virtio_net" ]; + boot.kernelModules = [ "kvm-intel" ]; + services.openssh.enable = true; services.openssh.startWhenNeeded = false; services.openssh.extraConfig = "UseDNS no"; diff --git a/nixopsvirtd/backends/libvirtd.py b/nixopsvirtd/backends/libvirtd.py index 4dcc5a5..1c094a6 100644 --- a/nixopsvirtd/backends/libvirtd.py +++ b/nixopsvirtd/backends/libvirtd.py @@ -296,9 +296,9 @@ def _make_os(defn): ' ', ' {2}', ' ', - ' ', + ' ', ' ', - ' ', + ' ', ' ', '\n'.join([self._make_iface(n) for n in defn.networks]), ' ' if not defn.headless else "",