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, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fsOptions = [ "noatime" "ssd" "space_cache" "compress=lzo" ];
|
fsOptions = [ "noatime" "ssd" "space_cache" "compress=zstd" ];
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports =
|
imports =
|
||||||
|
@ -29,8 +29,8 @@ in {
|
||||||
reusePassphrases = true;
|
reusePassphrases = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" ];
|
fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" "noatime" ];
|
||||||
fileSystems."/home".options = fsOptions ++ [ "subvol=home" ];
|
fileSystems."/home".options = fsOptions ++ [ "subvol=home" "relatime" ];
|
||||||
boot.tmpOnTmpfs = true;
|
boot.tmpOnTmpfs = true;
|
||||||
fileSystems."/tmp".fsType = "tmpfs";
|
fileSystems."/tmp".fsType = "tmpfs";
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/DED9-661B";
|
{ device = "/dev/disk/by-uuid/DED9-661B";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "discard" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
|
|
Loading…
Reference in a new issue