restic/system: Limit upload to 1.5M by default

This commit is contained in:
Simon Bruder 2021-03-08 18:43:48 +01:00
parent 3da67f7576
commit d73da1a131
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -57,6 +57,10 @@ in
type = lib.types.listOf lib.types.str;
default = [ ];
};
uploadLimit = lib.mkOption {
type = lib.types.nullOr lib.types.int;
default = 1500;
};
};
config = lib.mkIf cfg.enable {
@ -81,7 +85,7 @@ in
"--exclude-file=${excludesFile}"
"--tag system"
"--verbose"
];
] ++ lib.optional (cfg.uploadLimit != null) "--limit-upload=${toString cfg.uploadLimit}";
};
systemd.services."restic-backups-system".serviceConfig = {