restic/system: Limit upload to 1.5M by default
This commit is contained in:
parent
3da67f7576
commit
d73da1a131
|
@ -57,6 +57,10 @@ in
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
|
uploadLimit = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.int;
|
||||||
|
default = 1500;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
@ -81,7 +85,7 @@ in
|
||||||
"--exclude-file=${excludesFile}"
|
"--exclude-file=${excludesFile}"
|
||||||
"--tag system"
|
"--tag system"
|
||||||
"--verbose"
|
"--verbose"
|
||||||
];
|
] ++ lib.optional (cfg.uploadLimit != null) "--limit-upload=${toString cfg.uploadLimit}";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."restic-backups-system".serviceConfig = {
|
systemd.services."restic-backups-system".serviceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue