nixos/sanoid: add missing sanoid options regarding script hooks. (#412248)

This commit is contained in:
Sandro 2025-08-13 01:24:03 +02:00 committed by GitHub
commit c6c6d0bc86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,42 @@ let
type = with lib.types; nullOr bool;
default = null;
};
pre_snapshot_script = lib.mkOption {
description = "Script to run before taking snapshot.";
type = with lib.types; nullOr str;
default = null;
};
post_snapshot_script = lib.mkOption {
description = "Script to run after taking snapshot.";
type = with lib.types; nullOr str;
default = null;
};
pruning_script = lib.mkOption {
description = "Script to run after pruning snapshot.";
type = with lib.types; nullOr str;
default = null;
};
no_inconsistent_snapshot = lib.mkOption {
description = "Whether to take a snapshot if the pre script fails";
type = with lib.types; nullOr bool;
default = null;
};
force_post_snapshot_script = lib.mkOption {
description = "Whether to run the post script if the pre script fails";
type = with lib.types; nullOr bool;
default = null;
};
script_timeout = lib.mkOption {
description = "Time limit for pre/post/pruning script execution time (<=0 for infinite).";
type = with lib.types; nullOr int;
default = null;
};
};
datasetOptions = rec {