Unverified Commit aca35b7f authored by Tert0's avatar Tert0
Browse files

nixos/restic: add progressFps option

parent 54dba7be
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -292,6 +292,15 @@ in
                having to manually specify most options.
              '';
            };

            progressFps = lib.mkOption {
              type = with lib.types; nullOr numbers.nonnegative;
              default = null;
              description = ''
                Controls the frequency of progress reporting.
              '';
              example = 0.1;
            };
          };
        }
      )
@@ -376,7 +385,10 @@ in
              lib.mapAttrs' (
                name: value: lib.nameValuePair (rcloneAttrToConf name) (toRcloneVal value)
              ) backup.rcloneConfig
            );
            )
            // lib.optionalAttrs (backup.progressFps != null) {
              RESTIC_PROGRESS_FPS = toString backup.progressFps;
            };
          path = [ config.programs.ssh.package ];
          restartIfChanged = false;
          wants = [ "network-online.target" ];