mirror of https://gitlab.crans.org/nounous/nixos
30 lines
757 B
Nix
30 lines
757 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkEnableOption mkOption types;
|
|
in
|
|
{
|
|
options.resticClient = {
|
|
enable = mkEnableOption "Configuration générale pour le client restic.";
|
|
|
|
additionalPaths = mkOption {
|
|
type = types.listOf types.path;
|
|
default = [ ];
|
|
example = [ "/backup" ];
|
|
description = "Chemins à backuper en plus de ceux par défaut.";
|
|
};
|
|
|
|
additionalExcludes = mkOption {
|
|
type = types.listOf types.path;
|
|
default = [ ];
|
|
example = [ "/var/lib/<service>/cache" ];
|
|
description = "Chemins à exclure des backups en plus de ceux par défaut.";
|
|
};
|
|
|
|
when = mkOption {
|
|
type = types.str;
|
|
example = "05:42";
|
|
description = "À quelle heure faire les backups.";
|
|
};
|
|
};
|
|
}
|