From a08f15df96c46ae0edf0ab2ccc9814716e89bd61 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 9 Jan 2023 22:41:09 +0000 Subject: [PATCH] Auto trim/scrub zfs --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2c533e3..d175f62 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,5 @@ { config, pkgs, lib, ... }: + let secrets = import ./secrets.nix; in { @@ -59,6 +60,11 @@ in { defaults.email = secrets.letsencryptEmail; }; + services.zfs = { + autoScrub.enable = true; + trim.enable = true; + }; + time.timeZone = "UTC"; system.autoUpgrade = {