system: zfs: add scrub notifications
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
9d99ac705b
commit
27d609f956
BIN
secrets/my.nix
BIN
secrets/my.nix
Binary file not shown.
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue