lets hope this works

This commit is contained in:
Jakub Kropáček 2025-03-10 22:27:20 +01:00
parent c9c85ea7bc
commit be1e7b8e9d

View file

@ -8,10 +8,8 @@
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { ESP = {
priority = 1;
name = "ESP"; name = "ESP";
start = "1M"; size = "1G";
end = "1G";
type = "EF00"; type = "EF00";
content = { content = {
type = "filesystem"; type = "filesystem";
@ -19,24 +17,30 @@
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
root = { luks = {
size = "100%"; size = "100%";
content = {
type = "luks";
name = "crypted";
passwordFile = "/tmp/password.tmp";
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition extraArgs = [ "-f" ];
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = { subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = { "/rootfs" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/"; mountpoint = "/";
}; };
# Subvolume name is the same as the mountpoint
"/home" = { "/home" = {
mountOptions = [ "compress=zstd" ]; mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/home"; mountpoint = "/home";
}; };
# Parent is not mounted so the mountpoint must be set
"/nix" = { "/nix" = {
mountOptions = [ mountOptions = [
"compress=zstd" "compress=zstd"
@ -52,4 +56,5 @@
}; };
}; };
}; };
};
} }