Merge pull request #320035 from timhae/feature/tharing/fix-missing-default

Feature/tharing/fix missing default
This commit is contained in:
K900 2024-06-15 17:20:39 +03:00 committed by GitHub
commit 33f93a8999
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,12 +7,6 @@ let
defaultRpcListenPort = 6800;
defaultDir = "${homeDir}/Downloads";
rangesToStringList = map (x:
if x.from == x.to
then builtins.toString x.from
else builtins.toString x.from + "-" + builtins.toString x.to
);
portRangesToString = ranges: lib.concatStringsSep "," (map
(x:
if x.from == x.to
@ -77,6 +71,7 @@ in
[0]: https://aria2.github.io/manual/en/html/aria2c.html#synopsis
'';
default = { };
type = lib.types.submodule {
freeformType = with lib.types; attrsOf (oneOf [ bool int float singleLineStr ]);
options = {