This commit is contained in:
mjallen18
2025-03-23 12:53:44 -05:00
parent 70a34ec565
commit 094bca46d7
10 changed files with 306 additions and 301 deletions

View File

@@ -7,6 +7,12 @@
modulesPath,
...
}:
let
defeaultBtrfsOptions = [
"compress=zstd"
"autodefrag"
];
in
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
@@ -25,10 +31,8 @@
fsType = "btrfs";
options = [
"subvol=nix"
"compress=zstd"
"noatime"
"autodefrag"
];
] ++ defeaultBtrfsOptions;
};
fileSystems."/etc" = {
@@ -36,10 +40,8 @@
fsType = "btrfs";
options = [
"subvol=etc"
"compress=zstd"
"noatime"
"autodefrag"
];
] ++ defeaultBtrfsOptions;
};
fileSystems."/root" = {
@@ -47,10 +49,8 @@
fsType = "btrfs";
options = [
"subvol=root"
"compress=zstd"
"noatime"
"autodefrag"
];
] ++ defeaultBtrfsOptions;
};
fileSystems."/var/log" = {
@@ -58,10 +58,8 @@
fsType = "btrfs";
options = [
"subvol=log"
"compress=zstd"
"noatime"
"autodefrag"
];
] ++ defeaultBtrfsOptions;
};
fileSystems."/home" = {
@@ -69,9 +67,7 @@
fsType = "btrfs";
options = [
"subvol=home"
"compress=zstd"
"autodefrag"
];
] ++ defeaultBtrfsOptions;
};
fileSystems."/boot" = {