Files
homelab/hosts/neptun/disk-config.nix
erik ac05d948b6 refactor: rename vps host -> neptun (solar-system theme)
git-mv hosts/vps->neptun, secrets/vps.yaml->neptun.yaml; update flake, .sops.yaml
rules, hostName, sops paths, README/CLAUDE. Off-repo host key dir renamed too.
2026-07-14 13:32:44 +02:00

38 lines
974 B
Nix

{ ... }:
# Declarative disk layout (disko) for the netcup VPS.
# UEFI: GPT with an ESP + ext4 root on the single virtio disk.
#
# ⚠️ /dev/vda is WIPED on install — this destroys everything currently on the
# VPS (docker containers, data, existing caddy config). Back up / port your
# services into NixOS BEFORE running nixos-anywhere.
{
disko.devices.disk.vps = {
type = "disk";
device = "/dev/vda"; # netcup virtio disk (256G)
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
}