optimise mount options to fit SSDs, switch to more efficient zstd compression

This commit is contained in:
Trolli Schmittlauch 2019-11-22 20:02:07 +01:00
parent 342e788994
commit faae3e88ae
2 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,7 @@
{ config, pkgs, ... }:
let
fsOptions = [ "noatime" "ssd" "space_cache" "compress=lzo" ];
fsOptions = [ "noatime" "ssd" "space_cache" "compress=zstd" ];
in {
imports =
@ -29,8 +29,8 @@ in {
reusePassphrases = true;
};
fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" ];
fileSystems."/home".options = fsOptions ++ [ "subvol=home" ];
fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" "noatime" ];
fileSystems."/home".options = fsOptions ++ [ "subvol=home" "relatime" ];
boot.tmpOnTmpfs = true;
fileSystems."/tmp".fsType = "tmpfs";

View file

@ -17,6 +17,7 @@
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/DED9-661B";
fsType = "vfat";
options = [ "discard" ];
};
fileSystems."/home" =