Enable daily fstrim.

This commit is contained in:
Gabriel Ebner 2015-12-06 10:03:22 +01:00
parent 9276e8acbf
commit 46fa053bca
4 changed files with 18 additions and 0 deletions

@ -5,6 +5,7 @@
[
./common.nix
./uefi.nix
./fstrim.nix
];
environment.etc."lvm/lvm.conf".text = ''

@ -5,6 +5,7 @@
[
./common.nix
./uefi.nix
./fstrim.nix
];
boot.initrd.luks.devices = [ { name = "euhadra_crypt"; device = "/dev/disk/by-uuid/328a9ede-0958-490b-8e82-62b06b839e21"; preLVM = true; } ];

15
fstrim.nix Normal file

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

@ -5,6 +5,7 @@
[
./common.nix
./uefi.nix
./fstrim.nix
];
environment.etc."lvm/lvm.conf".text = ''