From b12ed4b8036d202d380de6988b561d27369c5913 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Mon, 1 Apr 2024 16:12:53 +0200 Subject: [PATCH] zfs: add some maintenance services --- hosts/quitte/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/quitte/configuration.nix b/hosts/quitte/configuration.nix index 26684a8..f86ad6e 100644 --- a/hosts/quitte/configuration.nix +++ b/hosts/quitte/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ config, ... }: { imports = @@ -13,6 +13,11 @@ boot.supportedFilesystems = [ "zfs" ]; boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; + services.zfs = { + trim.enable = true; + autoScrub.enable = true; + }; + # Set your time zone. time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "en_US.UTF-8";