288 current 2025-10-11 10:03:00 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -18,13 +18,12 @@ let
|
|||||||
cfg = config.modules.system.backups;
|
cfg = config.modules.system.backups;
|
||||||
sec = config.sops.secrets;
|
sec = config.sops.secrets;
|
||||||
borg = "${pkgs.borgbackup}/bin/borg";
|
borg = "${pkgs.borgbackup}/bin/borg";
|
||||||
baks = lib.unique config.modules.system.backups.baks;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.system.backups = {
|
options.modules.system.backups = {
|
||||||
enable = lib.mkEnableOption "enables backups with borg";
|
enable = lib.mkEnableOption "enables backups with borg";
|
||||||
baks = lib.mkOption {
|
baks = lib.mkOption {
|
||||||
# type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path));
|
type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path));
|
||||||
default = {};
|
default = {};
|
||||||
description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]";
|
description = "backup jobs, nested attribute sets should be <bak_name> = paths [<list_of_paths>]";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user