Try aria2
This commit is contained in:
parent
9d2f6da9a0
commit
1a5b0c3927
3 changed files with 27 additions and 6 deletions
|
|
@ -1,20 +1,39 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
const = config.constants;
|
||||
ports = const.port;
|
||||
usr = const.userName;
|
||||
in
|
||||
{
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
services = let const = config.constants; in {
|
||||
services = {
|
||||
aria2 = {
|
||||
enable = true;
|
||||
extraArguments = "--rpc-listen-all";
|
||||
rpcListenPort = ports.aria2;
|
||||
rpcSecretFile = config.sops.secrets.aria2.path;
|
||||
};
|
||||
jellyfin = {
|
||||
enable = true;
|
||||
user = const.userName;
|
||||
user = usr;
|
||||
};
|
||||
jellyseerr = {
|
||||
enable = true;
|
||||
port = const.port.jellyseerr;
|
||||
port = ports.jellyseerr;
|
||||
};
|
||||
radarr = {
|
||||
enable = true;
|
||||
user = const.userName;
|
||||
user = usr;
|
||||
};
|
||||
sonarr = {
|
||||
enable = true;
|
||||
user = usr;
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets.aria2 = { };
|
||||
|
||||
users.users.${usr}.extraGroups = [ config.systemd.services.aria2.serviceConfig.Group ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue