Improve Proxmox backup image generation

This commit is contained in:
yuri 2023-08-04 01:38:49 +02:00
parent 5c0f7dd6b8
commit 09abf3bee9
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 = [ ];
};