From 91eb5281a340cde5c67f60eda3a1af1dd1ed58e0 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 9 Jul 2023 17:03:38 +0530 Subject: [PATCH] add rpc-secret to aria2c --- home/services/aria2c.nix | 3 ++- secrets.nix | Bin 1425 -> 1502 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/home/services/aria2c.nix b/home/services/aria2c.nix index fa5c73c..8282c89 100644 --- a/home/services/aria2c.nix +++ b/home/services/aria2c.nix @@ -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}" ''; }; }; diff --git a/secrets.nix b/secrets.nix index bdcc00adf8f4aaa1c4b67b7595ea6d25bbd221f1..9c70648ba7e6c1da62fa1335b27b58b88415208e 100644 GIT binary patch literal 1502 zcmV<41tIzXM@dveQdv+`0AMC%@PBEt9Bu4eP3nMcM*-~*H!C&~b=?HfBQ^0sHk$O+ zPYDR){x|Yt!fd~V-ny+8ej!&(iL|yWiGjP0@92Ih8GY%AkqQ}=7Y|%ADb?(jfeWeJ zd_Mc9*>}xW%ex8$!uNqI@kDPJh@gq!#)D5h(y#~~HC1-Q3Z2fl4^qJ~M1@B@nlK}f zJ|OkR{zKVYmbHldq>#QQF;{~s?0UQRFKr#$=bBqkL|52}ODu8<&cQ4}S&^5Adk%p2 z*GCM~9s3lrweulK>T8iiqT=QZ-3P_2RG6@pU#$qnpZ__;#O|dZn z6F~dDTbT^?uip>_+ZX!3Q-Y=@(j{yqvrqn*52_MpFf^cf=C9qBy`+lrEZwPC>pD>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