From 51ee882d28bf33b87ece9411d9eeb0de6bb334b7 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 15 Jan 2026 11:32:24 +0200 Subject: Add correct mount options for drives --- hosts/pihlaja/hardware-configuration.nix | 51 ++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 19 deletions(-) (limited to 'hosts/pihlaja') 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; } -- cgit v1.2.3-70-g09d2