nixos/colony: Make fstrim happen right before backup

This commit is contained in:
2023-02-21 14:37:39 +00:00
parent 15721e0894
commit c8385a466e
6 changed files with 21 additions and 2 deletions

View File

@@ -14,6 +14,18 @@ in
kmscon.autologinUser = mkDefault uname;
resolved.llmnr = mkDefault "false";
};
systemd = {
timers = {
fstrim = mkIf config.services.fstrim.enable {
timerConfig = {
# Upstream unit has these at crazy high values that probably
# make sense on desktops / laptops
AccuracySec = "1min";
RandomizedDelaySec = "5min";
};
};
};
};
my = {
gui.enable = false;