system: zfs: add scrub notifications

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-01-21 00:53:42 +01:00
parent 9d99ac705b
commit 27d609f956
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7
2 changed files with 10 additions and 4 deletions

Binary file not shown.

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, my, pkgs, ... }:
{
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
@ -7,7 +7,13 @@
environment.systemPackages = with pkgs; [ zfs ];
services.zfs.autoScrub.enable = true;
services.zfs.autoSnapshot.enable = true;
services.zfs.trim.enable = true;
services.zfs = {
autoScrub.enable = true;
autoSnapshot.enable = true;
trim.enable = true;
zed.settings = {
ZED_SLACK_WEBHOOK_URL = my.notifications.zfs-bot.url;
ZED_NOTIFY_VERBOSE = 1;
};
};
}