nixos-config/fstrim.nix

16 lines
230 B
Nix

{ config, pkgs, ... }:
{
systemd.services.fstrimroot = {
path = [ pkgs.eject ];
restartIfChanged = false;
serviceConfig = {
Type = "oneshot";
};
script = "fstrim -v /";
startAt = "04:00";
};
}