aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/pihlaja
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2026-01-15 11:32:24 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2026-01-15 11:32:24 +0200
commit51ee882d28bf33b87ece9411d9eeb0de6bb334b7 (patch)
treeecc95fe94747882e02b67c92897705e6465d3a67 /hosts/pihlaja
parentb388bbc200cc4fc9adb0aa2280fe5629b0f8cc4a (diff)
downloadnixos-51ee882d28bf33b87ece9411d9eeb0de6bb334b7.tar.zst
Add correct mount options for drives
Diffstat (limited to 'hosts/pihlaja')
-rw-r--r--hosts/pihlaja/hardware-configuration.nix51
1 files changed, 32 insertions, 19 deletions
diff --git a/hosts/pihlaja/hardware-configuration.nix b/hosts/pihlaja/hardware-configuration.nix
index d389063..3626e6d 100644
--- a/hosts/pihlaja/hardware-configuration.nix
+++ b/hosts/pihlaja/hardware-configuration.nix
@@ -45,28 +45,41 @@
extraModulePackages = [ ];
};
- fileSystems."/" = {
- device = "/dev/disk/by-uuid/eecfd181-138c-4c90-add6-2ef528d5dbb4";
- fsType = "ext4";
- };
-
- fileSystems."/data" = {
- device = "/dev/disk/by-uuid/a02a4e78-32ea-40e6-8398-087bfd8dca93";
- fsType = "ext4";
- options = [ "nofail" ];
- };
-
- fileSystems."/boot" = {
- device = "/dev/disk/by-uuid/A4F5-0899";
- fsType = "vfat";
- options = [
- "fmask=0077"
- "dmask=0077"
- ];
+ fileSystems = {
+ "/boot" = {
+ device = "/dev/disk/by-uuid/A4F5-0899";
+ fsType = "vfat";
+ options = [
+ "fmask=0077"
+ "dmask=0077"
+ ];
+ };
+ "/" = {
+ device = "/dev/disk/by-uuid/eecfd181-138c-4c90-add6-2ef528d5dbb4";
+ fsType = "ext4";
+ options = [
+ "defaults"
+ "lazytime"
+ "nodiratime"
+ "barrier=1"
+ "errors=remount-ro"
+ "commit=30"
+ ];
+ };
+ "/data" = {
+ device = "/dev/disk/by-uuid/a02a4e78-32ea-40e6-8398-087bfd8dca93";
+ fsType = "ext4";
+ options = [
+ "defaults"
+ "noatime"
+ "barrier=1"
+ "errors=remount-ro"
+ "commit=60"
+ ];
+ };
};
swapDevices = [ { device = "/dev/disk/by-uuid/d0e5a93d-18a7-4d24-893c-d2417c3d5043"; } ];
-
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}