2024-01-19 12:32:06 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
# Contains the configuration to make a VM bootable with qemu.
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
"${modulesPath}/virtualisation/qemu-vm.nix"
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelParams = [ "boot.shell_on_fail" ];
|
|
|
|
consoleLogLevel = lib.mkDefault 7;
|
|
|
|
initrd.kernelModules = [
|
|
|
|
"virtio_pci"
|
|
|
|
"virtio_blk"
|
|
|
|
"virtio_input"
|
|
|
|
"9pnet"
|
|
|
|
"9pnet_virtio"
|
|
|
|
];
|
|
|
|
|
|
|
|
loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
generic-extlinux-compatible.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.diskImage = null;
|
|
|
|
|
2024-01-22 16:05:38 +01:00
|
|
|
# FIXME: Broken as rustc injects compressed instructions.
|
|
|
|
# For now we disable it.
|
2024-01-22 13:37:26 +01:00
|
|
|
services.nscd.enableNsncd = false;
|
2024-01-19 12:32:06 +01:00
|
|
|
}
|