forgejo-ci-runners/hardware/shadowfax-kubevirt.nix

23 lines
709 B
Nix
Raw Normal View History

2024-05-23 14:50:32 -05:00
{ config, modulesPath, lib, ... }:
{
imports = [
2024-05-25 11:17:33 -05:00
./.
2024-05-23 14:50:32 -05:00
];
2024-05-25 10:46:46 -05:00
config = {
2024-05-25 10:50:06 -05:00
boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
2024-05-25 11:01:39 -05:00
boot.initrd.kernelModules = [ "virtio_gpu" ];
2024-05-25 10:50:06 -05:00
boot.extraModulePackages = [];
2024-05-25 11:01:39 -05:00
boot.loader.systemd-boot.enable = true;
# since it's a vm, we can do this on every update safely
boot.loader.efi.canTouchEfiVariables = true;
# set console because the console defaults to serial and
# initialize the display early to get a complete log.
# this is required for typing in LUKS passwords on boot too.
boot.kernelParams = [ "console=tty" ];
networking.nameservers = [
"10.1.1.1"
];
2024-05-23 14:50:32 -05:00
};
}