nixos: disko: simplify

This commit is contained in:
Guanran Wang 2024-01-13 15:20:06 +08:00
parent 24f5667327
commit dc4ad8f939
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -14,11 +14,7 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
"fmask=0077"
"dmask=0077"
];
mountOptions = ["defaults" "umask=007"];
};
};
"luks" = {
@ -29,14 +25,16 @@
settings.allowDiscards = true;
content = {
type = "btrfs";
subvolumes = {
subvolumes = let
mountOptions = ["defaults" "compress=zstd" "noatime"];
in {
"/@nix" = {
mountpoint = "/nix";
mountOptions = ["defaults" "compress=zstd" "noatime"];
inherit mountOptions;
};
"/@persist" = {
mountpoint = "/persist";
mountOptions = ["defaults" "compress=zstd" "noatime"];
inherit mountOptions;
};
};
};