Switch from BIOS and GRUB to UEFI and systemd-boot for Proxmox VMs

This commit is contained in:
June 2023-09-14 20:06:06 +02:00
parent 5bfa655d3e
commit c427ff934a
3 changed files with 17 additions and 8 deletions
config/nixos-generators

View file

@ -2,6 +2,7 @@
# - https://github.com/NixOS/nixpkgs/blob/069de7d3deafab651fd627c8f6d7e4c7b33087a2/nixos/modules/virtualisation/proxmox-image.nix#L6
# - https://git.grzb.de/yuri/nix-infra/-/blob/aa38daeea59f2ca12b7e591de6f8b61565780c48/configuration/nixos-generators/default.nix#L13
# - https://git.grzb.de/yuri/nix-infra/-/blob/aa38daeea59f2ca12b7e591de6f8b61565780c48/flake.nix#L39
# - https://pve.proxmox.com/wiki/Manual:_qm.conf
{ config, pkgs, ... }:
@ -12,11 +13,12 @@
cores = 2;
memory = 512;
virtio0 = "rpool-data:vm-9999-disk-0,discard=on";
bios = "seabios";
bios = "ovmf";
net0 = "virtio=00:00:00:00:00:00,bridge=vmbr0,firewall=1,tag=999";
};
qemuExtraConf = {
cpu = "cputype=host,flags=+aes";
machine = "q35";
template = 1;
};
};