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,30 +17,37 @@
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
root = { luks = {
size = "100%"; size = "100%";
content = { content = {
type = "btrfs"; type = "luks";
extraArgs = [ "-f" ]; # Override existing partition name = "crypted";
# Subvolumes must set a mountpoint in order to be mounted, passwordFile = "/tmp/password.tmp";
# unless their parent is mounted content = {
subvolumes = { type = "btrfs";
# Subvolume name is different from mountpoint extraArgs = [ "-f" ];
"/rootfs" = { subvolumes = {
mountpoint = "/"; "/rootfs" = {
}; mountOptions = [
# Subvolume name is the same as the mountpoint "compress=zstd"
"/home" = { "noatime"
mountOptions = [ "compress=zstd" ]; ];
mountpoint = "/home"; mountpoint = "/";
}; };
# Parent is not mounted so the mountpoint must be set "/home" = {
"/nix" = { mountOptions = [
mountOptions = [ "compress=zstd"
"compress=zstd" "noatime"
"noatime" ];
]; mountpoint = "/home";
mountpoint = "/nix"; };
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
}; };
}; };
}; };