diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 097d9fc..2721ee4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -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.