{ lib, sources ? import ../../../../npins, ... }: { imports = [ "${sources.disko}/module.nix" ../../../../infra/common/proxmox-qemu-vm.nix ]; networking.useDHCP = false; services.qemuGuest.enable = true; services.openssh.enable = true; services.cloud-init = { enable = true; network.enable = true; }; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFZsldWMEsajYysjYsEpNvMOjO4D8L21pTrfQS1T+Hfy" ]; boot.loader = { systemd-boot.enable = true; efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; grub.enable = false; }; fileSystems."/boot" = { fsType = "vfat"; device = lib.mkDefault "/dev/sda1"; options = [ "fmask=0022" "dmask=0022" ]; }; disko.devices.disk.main = { device = "/dev/sda"; type = "disk"; imageSize = "20G"; # needed for image generation content = { type = "gpt"; partitions = { esp = { priority = 1; size = "500M"; type = "EF00"; label = "boot"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; root = { priority = 2; size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; }; }; }