global(fs): add zfs alerts
This commit is contained in:
parent
df6aa3f8ec
commit
54a4b90257
2 changed files with 131 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue