2015-12-06 09:03:22 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
systemd.services.fstrimroot = {
|
|
|
|
path = [ pkgs.eject ];
|
|
|
|
|
|
|
|
restartIfChanged = false;
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "oneshot";
|
|
|
|
};
|
|
|
|
|
2018-11-05 17:05:56 +00:00
|
|
|
script = "${pkgs.utillinux.bin}/bin/fstrim -v /";
|
2015-12-06 09:03:22 +00:00
|
|
|
|
|
|
|
startAt = "04:00";
|
|
|
|
};
|
|
|
|
}
|