Fediversity/deployment/check/data-model-tf-proxmox/setups/shared.nix
Kiara Grouwstra 6f58d38c45
rm repart
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>

restore partition case from repart

Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
2025-10-24 11:11:22 +02:00

67 lines
1.4 KiB
Nix

{
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 = "/";
};
};
};
};
};
}