Improve Proxmox backup image generation

This commit is contained in:
fi 2024-11-20 05:46:39 +01:00
parent 1aab87a1fe
commit 31edbd4ca4
6 changed files with 37 additions and 9 deletions

View file

@ -1,5 +1,9 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
];
# Enable console output on TTY1 and serial console
boot.kernelParams = [
"console=tty1"

View file

@ -1,11 +1,14 @@
{ config, lib, modulesPath, ... }:
{
# hardware-configuration.nix copied and adapted from the default configuration generated by nixos-generators
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot = {
initrd = {
# To use the VirtIO SCSI disks, add the "virtio_scsi" kernel module to availableKernelModules
availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_blk" ];
kernelModules = [ ];
};