nixos-config/modules/nixos/profiles/hetzner-cloud-cx22.nix

26 lines
707 B
Nix
Raw Normal View History

{ config, lib, pkgs, modulesPath, ... }:
{
2025-01-29 04:48:19 +00:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
# Hetzner can only support non-UEFI bootloader (or at least it doesn't with
# systemd-boot).
boot.loader.grub = {
enable = lib.mkForce true;
efiSupport = true;
efiInstallAsRemovable = true;
};
2025-01-29 04:48:19 +00:00
boot.initrd.availableKernelModules =
[ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ "nvme" ];
zramSwap.enable = true;
2025-01-29 04:48:19 +00:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
services.qemuGuest.enable = true;
systemd.services.qemu-guest-agent.path = [ pkgs.shadow ];
}