zfs: add some maintenance services

This commit is contained in:
Rouven Seifert 2024-04-01 16:12:53 +02:00
parent 2d03a3dffd
commit b12ed4b803
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -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";