airdcpp.mod: add DownloadDirectory
This commit is contained in:
parent
c409536433
commit
230630729c
@ -84,6 +84,7 @@ let
|
|||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
dcpp = {
|
dcpp = {
|
||||||
|
# entries in DCPlusPlus.xml
|
||||||
Nick = mkOption {
|
Nick = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Nick Name for connection
|
Nick Name for connection
|
||||||
@ -116,6 +117,11 @@ let
|
|||||||
type = str;
|
type = str;
|
||||||
default = "100";
|
default = "100";
|
||||||
};
|
};
|
||||||
|
DownloadDirectory = mkOption {
|
||||||
|
description = "Directory, where new files will be saved into";
|
||||||
|
type = str;
|
||||||
|
default = "${cfg.stateDir}/Download";
|
||||||
|
};
|
||||||
shares = mkOption {
|
shares = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = attrsOf (submodule ( { config, ... }: {
|
type = attrsOf (submodule ( { config, ... }: {
|
||||||
@ -218,6 +224,7 @@ let
|
|||||||
<InPort type="int">${toString cfg.dcpp.InPort}</InPort>
|
<InPort type="int">${toString cfg.dcpp.InPort}</InPort>
|
||||||
<UDPPort type="int">${toString cfg.dcpp.UDPPort}</UDPPort>
|
<UDPPort type="int">${toString cfg.dcpp.UDPPort}</UDPPort>
|
||||||
<TLSPort type="int">${toString cfg.dcpp.TLSPort}</TLSPort>
|
<TLSPort type="int">${toString cfg.dcpp.TLSPort}</TLSPort>
|
||||||
|
<DownloadDirectory type="string">${cfg.dcpp.DownloadDirectory}</DownloadDirectory>
|
||||||
<AutoDetectIncomingConnection type="int">0</AutoDetectIncomingConnection>
|
<AutoDetectIncomingConnection type="int">0</AutoDetectIncomingConnection>
|
||||||
<NoIpOverride type="int">1</NoIpOverride>
|
<NoIpOverride type="int">1</NoIpOverride>
|
||||||
<WizardRunNew type="int">0</WizardRunNew>
|
<WizardRunNew type="int">0</WizardRunNew>
|
||||||
|
Loading…
Reference in New Issue
Block a user