/tmp on tmpfs; tlp tweaks against power ata errors
This commit is contained in:
parent
2f731c328b
commit
844cad9621
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue