Introduce a variable for sway includes and disable relatime on the zfs legacy mounts.

This commit is contained in:
Tom Alexander
2025-01-12 15:32:24 -05:00
parent a817464b38
commit 5146a114eb
4 changed files with 177 additions and 130 deletions

View File

@@ -119,6 +119,27 @@ lib.mkIf (!config.me.buildingIso) {
fileSystems."/state".neededForBoot = true;
fileSystems."/home".neededForBoot = true;
fileSystems."/".options = [
"noatime"
"norelatime"
];
fileSystems."/nix".options = [
"noatime"
"norelatime"
];
fileSystems."/persist".options = [
"noatime"
"norelatime"
];
fileSystems."/state".options = [
"noatime"
"norelatime"
];
fileSystems."/home".options = [
"noatime"
"norelatime"
];
# Only attempt to decrypt the main pool. Otherwise it attempts to decrypt pools that aren't even used.
boot.zfs.requestEncryptionCredentials = [ "zroot/linux/nix" ];
}