- git-mv jupiter/ vps/ into hosts/; fix ../ -> ../../ for common/services/secrets - flake.nix + deploy point at hosts/<config>/ - README structure updated - verified: jupiter/vps/vbox all eval
38 lines
974 B
Nix
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 = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|