ma hw/ssd: init

This commit is contained in:
makefu 2018-12-17 01:12:29 +01:00
parent ed8d07f682
commit 62e90729ac
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{
# ssd trimming
services.fstrim.enable = true;
}

View File

@ -4,6 +4,7 @@ with import <stockholm/lib>;
{ {
imports = [ imports = [
./tpm.nix ./tpm.nix
./ssd.nix
]; ];
boot.kernelModules = [ boot.kernelModules = [
@ -50,6 +51,7 @@ with import <stockholm/lib>;
CPU_MAX_PERF_ON_BAT=30 CPU_MAX_PERF_ON_BAT=30
''; '';
powerManagement.resumeCommands = '' powerManagement.resumeCommands = ''
${pkgs.rfkill}/bin/rfkill unblock all ${pkgs.rfkill}/bin/rfkill unblock all
''; '';