/tmp on tmpfs; tlp tweaks against power ata errors

This commit is contained in:
Trolli Schmittlauch 2018-10-11 15:44:44 +02:00
parent 2f731c328b
commit 844cad9621

View file

@ -27,11 +27,19 @@ in {
fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" ];
fileSystems."/home".options = fsOptions ++ [ "subvol=home" ];
boot.tmpOnTmpfs = true;
fileSystems."/tmp".fsType = "tmpfs";
services.fstrim.enable = true;
# powermanagement
services.tlp.enable = true;
services.tlp =
{ enable = true;
extraConfig = ''
SATA_LINKPWR_ON_BAT=medium_power
SATA_LINKPWR_ON_AC=max_performance
'';
};
#powerManagement.powertop.enable = true;
# Use the systemd-boot EFI boot loader.