optimise mount options to fit SSDs, switch to more efficient zstd compression
This commit is contained in:
parent
342e788994
commit
faae3e88ae
|
@ -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";
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/DED9-661B";
|
||||
fsType = "vfat";
|
||||
options = [ "discard" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
|
|
Loading…
Reference in a new issue