Auto trim/scrub zfs

This commit is contained in:
dump_stack() 2023-01-09 22:41:09 +00:00
parent 8d551299d9
commit a08f15df96
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -1,4 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
secrets = import ./secrets.nix; secrets = import ./secrets.nix;
in { in {
@ -59,6 +60,11 @@ in {
defaults.email = secrets.letsencryptEmail; defaults.email = secrets.letsencryptEmail;
}; };
services.zfs = {
autoScrub.enable = true;
trim.enable = true;
};
time.timeZone = "UTC"; time.timeZone = "UTC";
system.autoUpgrade = { system.autoUpgrade = {