create gustave

This commit is contained in:
Luj 2024-04-05 00:34:14 +02:00
parent 0a355030ec
commit 9f00915fcc
Signed by: luj
GPG key ID: 6FC74C847011FD83
6 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{
devices = {
disk = {
sda = {
type = "disk";
device = "/dev/disk/by-diskseq/3";
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
"/persistent" = {
mountpoint = "/persistent";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
};
mountpoint = "/partition-root";
};
};
};
};
};
};
};
}