global(fs): add zfs alerts

This commit is contained in:
514fpv 2024-03-25 12:31:50 +08:00
parent 22ccce5fc5
commit efe0526c04
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 131 additions and 0 deletions

View file

@ -5,6 +5,7 @@
cfg = config.global.fs;
in {
imports = [
./alert.nix
./split.nix
./replication.nix
];
@ -13,6 +14,16 @@ in {
# -O encryption=on -O keyformat=passphrase -O keylocation=prompt
# -O compression=on -O mountpoint=none -O xattr=sa -O acltype=posixacl
options.global.fs.zfs = {
alert = {
zed = mkEnableOption "zfs event alerts" // { default = true; };
swraid = mkEnableOption "software raid alerts" // { default = true; };
secret = mkOption {
type = with types; nullOr str;
default = null;
description = "path to alert secrets";
};
};
persist = mkOption {
type = with types; str;
default = cfg.store;