add rpc-secret to aria2c

This commit is contained in:
Adithya 2023-07-09 17:03:38 +05:30
parent f8b321ba13
commit 91eb5281a3
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{
config,
pkgs,
secrets,
...
}: {
systemd.user.services.aria2c = {
@ -15,7 +16,7 @@
Service = {
Type = "simple";
ExecStart = ''
${pkgs.aria}/bin/aria2c --console-log-level=warn --log-level=notice --enable-rpc --rpc-listen-all --rpc-listen-port=6800 --dir="${config.xdg.userDirs.download}"
${pkgs.aria}/bin/aria2c --console-log-level=warn --log-level=notice --enable-rpc --rpc-secret="${secrets.aria2_config.rpc_secret}" --rpc-listen-all --rpc-listen-port=6800 --dir="${config.xdg.userDirs.download}"
'';
};
};

Binary file not shown.