Testing
This commit is contained in:
parent
4757c266ec
commit
6f6ed14912
1 changed files with 65 additions and 66 deletions
|
@ -67,74 +67,73 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
mdadm = {
|
mdadm = {
|
||||||
boot = {
|
boot = {
|
||||||
type = "mdadm";
|
type = "mdadm";
|
||||||
level = 1;
|
level = 1;
|
||||||
metadata = "1.0";
|
metadata = "1.0";
|
||||||
content = {
|
content = {
|
||||||
type = "Filesystem";
|
type = "Filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
mountOptions = [ "umask=0077" ];
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
raid1 = {
|
};
|
||||||
type = "mdadm";
|
raid1 = {
|
||||||
level = 1;
|
type = "mdadm";
|
||||||
content = {
|
level = 1;
|
||||||
type = "gpt";
|
content = {
|
||||||
partitions = {
|
type = "gpt";
|
||||||
LUKS-ROOT = {
|
partitions = {
|
||||||
start = "550MiB";
|
LUKS-ROOT = {
|
||||||
end = "100%";
|
start = "550MiB";
|
||||||
|
end = "100%";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "ROOT";
|
||||||
|
extraOpenArgs = [ "--allow-discards" ];
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "btrfs";
|
||||||
name = "ROOT";
|
extraArgs = [ "-f" ];
|
||||||
extraOpenArgs = [ "--allow-discards" ];
|
subvolumes = {
|
||||||
content = {
|
"/root" = {
|
||||||
type = "btrfs";
|
mountpoint = "/";
|
||||||
extraArgs = [ "-f" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
subvolumes = {
|
}; # root
|
||||||
"/root" = {
|
"/home" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/home";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # root
|
}; # home
|
||||||
"/home" = {
|
"/nix" = {
|
||||||
mountpoint = "/home";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # home
|
}; # nix
|
||||||
"/nix" = {
|
"/Storage" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/Storage";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # nix
|
}; # Storage
|
||||||
"/Storage" = {
|
# SNAPSHOT SUBVOLS
|
||||||
mountpoint = "/Storage";
|
"/root/.snapshots" = {
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountpoint = "/.snapshots";
|
||||||
}; # Storage
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
# SNAPSHOT SUBVOLS
|
}; # root
|
||||||
"/root/.snapshots" = {
|
"/home/.snapshots" = {
|
||||||
mountpoint = "/.snapshots";
|
mountpoint = "/home/.snapshots";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # root
|
}; # home
|
||||||
"/home/.snapshots" = {
|
"/nix/.snapshots" = {
|
||||||
mountpoint = "/home/.snapshots";
|
mountpoint = "/nix/.snapshots";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # home
|
}; # nix
|
||||||
"/nix/.snapshots" = {
|
"/Storage/.snapshots" = {
|
||||||
mountpoint = "/nix/.snapshots";
|
mountpoint = "/Storage/.snapshots";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
}; # nix
|
}; # Storage
|
||||||
"/Storage/.snapshots" = {
|
}; # subvolumes
|
||||||
mountpoint = "/Storage/.snapshots";
|
}; # content.content
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
}; # content
|
||||||
}; # Storage
|
}; # partition 2 (/ BTRFS)
|
||||||
}; # subvolumes
|
|
||||||
}; # content.content
|
|
||||||
}; # content
|
|
||||||
}; # partition 2 (/ BTRFS)
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue