Filesystem : Add noatime to all drives.

This commit is contained in:
Dmitry Voronin 2024-04-11 12:29:24 +03:00
parent 195f1a774a
commit bec83905d4
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 12 additions and 11 deletions

View file

@ -2,12 +2,12 @@
fileSystems."/storage/hot" = { fileSystems."/storage/hot" = {
device = "/dev/storage/hot"; device = "/dev/storage/hot";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" "noatime" ];
}; };
fileSystems."/storage/cold" = { fileSystems."/storage/cold" = {
device = "/dev/storage/cold"; device = "/dev/storage/cold";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" "noatime" ];
}; };
} }

View file

@ -2,18 +2,18 @@
fileSystems."/storage/hot" = { fileSystems."/storage/hot" = {
device = "/dev/storage/hot"; device = "/dev/storage/hot";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "noatime" "nofail" ];
}; };
fileSystems."/storage/cold_1" = { fileSystems."/storage/cold_1" = {
device = "/dev/storage/cold_1"; device = "/dev/storage/cold_1";
fsType = "ext4"; fsType = "ext4";
options = [ "noauto" "nofail" ]; options = [ "noatime" "noauto" "nofail" ];
}; };
fileSystems."/storage/cold_2" = { fileSystems."/storage/cold_2" = {
device = "/dev/storage/cold_2"; device = "/dev/storage/cold_2";
fsType = "ext4"; fsType = "ext4";
options = [ "noauto" "nofail" ]; options = [ "noatime" "noauto" "nofail" ];
}; };
} }

View file

@ -2,18 +2,18 @@
fileSystems."/storage/cold_1" = { fileSystems."/storage/cold_1" = {
device = "/dev/storage/cold_1"; device = "/dev/storage/cold_1";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" "noatime" ];
}; };
fileSystems."/storage/cold_2" = { fileSystems."/storage/cold_2" = {
device = "/dev/storage/cold_2"; device = "/dev/storage/cold_2";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" "noatime" ];
}; };
fileSystems."/storage/hot" = { fileSystems."/storage/hot" = {
device = "/dev/storage/hot"; device = "/dev/storage/hot";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" "noatime" ];
}; };
} }

View file

@ -2,6 +2,6 @@
fileSystems."/storage/hot" = { fileSystems."/storage/hot" = {
device = "/dev/storage/hot"; device = "/dev/storage/hot";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "noatime" "nofail" ];
}; };
} }

View file

@ -1,7 +1,8 @@
{ ... }: { { ... }: {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXROOT"; device = "/dev/disk/by-partlabel/NIXROOT";
fsType = "ext4"; fsType = "ext4";
options = [ "noatime" ];
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/NIXBOOT"; device = "/dev/disk/by-partlabel/NIXBOOT";