made backup of classic disk partition file

This commit is contained in:
2025-04-15 15:45:05 -05:00
parent 633f3721a2
commit 033bc54bce
2 changed files with 57 additions and 1 deletions
+56
View File
@@ -0,0 +1,56 @@
{
disko.devices = {
disk = {
vdb = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
start = "1M";
end = "128M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountpoint = "/";
};
# Subvolume name is the same as the mountpoint
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
# Sub(sub)volume doesn't need a mountpoint as its parent is mounted
"/home/elliott" = { };
# Parent is not mounted so the mountpoint must be set
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
};
mountpoint = "/partition-root";
};
};
};
};
};
};
};
}
+1 -1
View File
@@ -1,6 +1,6 @@
# Server Steps
1. Set up declarative disk partitioning
1. Set up declarative disk partitioning (ephemeral)
2. Implement SOPS for secret management
3. Lock down machine IP addresses, passed in through flake as param
4. Create a k8s cluster on server