transmission daemon setup and tui
This commit is contained in:
parent
32a019c99c
commit
28debdc44b
5 changed files with 100 additions and 19 deletions
68
config/transmission-daemon/settings.json
Normal file
68
config/transmission-daemon/settings.json
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"alt-speed-down": 50,
|
||||
"alt-speed-enabled": false,
|
||||
"alt-speed-time-begin": 540,
|
||||
"alt-speed-time-day": 127,
|
||||
"alt-speed-time-enabled": false,
|
||||
"alt-speed-time-end": 1020,
|
||||
"alt-speed-up": 50,
|
||||
"bind-address-ipv4": "0.0.0.0",
|
||||
"bind-address-ipv6": "::",
|
||||
"blocklist-enabled": false,
|
||||
"blocklist-url": "http://www.example.com/blocklist",
|
||||
"cache-size-mb": 4,
|
||||
"dht-enabled": true,
|
||||
"download-dir": "/home/sako/Downloads/torrents",
|
||||
"download-queue-enabled": true,
|
||||
"download-queue-size": 5,
|
||||
"encryption": 1,
|
||||
"idle-seeding-limit": 30,
|
||||
"idle-seeding-limit-enabled": false,
|
||||
"incomplete-dir": "/home/sako/Downloads/torrents/imcomplete",
|
||||
"incomplete-dir-enabled": true,
|
||||
"lpd-enabled": false,
|
||||
"message-level": 2,
|
||||
"peer-congestion-algorithm": "",
|
||||
"peer-id-ttl-hours": 6,
|
||||
"peer-limit-global": 200,
|
||||
"peer-limit-per-torrent": 50,
|
||||
"peer-port": 51413,
|
||||
"peer-port-random-high": 65535,
|
||||
"peer-port-random-low": 49152,
|
||||
"peer-port-random-on-start": false,
|
||||
"peer-socket-tos": "default",
|
||||
"pex-enabled": true,
|
||||
"port-forwarding-enabled": true,
|
||||
"preallocation": 1,
|
||||
"prefetch-enabled": true,
|
||||
"queue-stalled-enabled": true,
|
||||
"queue-stalled-minutes": 30,
|
||||
"ratio-limit": 2,
|
||||
"ratio-limit-enabled": false,
|
||||
"rename-partial-files": true,
|
||||
"rpc-authentication-required": false,
|
||||
"rpc-bind-address": "0.0.0.0",
|
||||
"rpc-enabled": true,
|
||||
"rpc-host-whitelist": "",
|
||||
"rpc-host-whitelist-enabled": true,
|
||||
"rpc-password": "{d7882a3818f36fee8c4cf1068c40af1270fd56366px7nLqg",
|
||||
"rpc-port": 9091,
|
||||
"rpc-url": "/transmission/",
|
||||
"rpc-username": "",
|
||||
"rpc-whitelist": "127.0.0.1,::1",
|
||||
"rpc-whitelist-enabled": true,
|
||||
"scrape-paused-torrents-enabled": true,
|
||||
"script-torrent-done-enabled": false,
|
||||
"script-torrent-done-filename": "",
|
||||
"seed-queue-enabled": false,
|
||||
"seed-queue-size": 10,
|
||||
"speed-limit-down": 100,
|
||||
"speed-limit-down-enabled": false,
|
||||
"speed-limit-up": 100,
|
||||
"speed-limit-up-enabled": false,
|
||||
"start-added-torrents": true,
|
||||
"trash-original-torrent-files": false,
|
||||
"umask": 18,
|
||||
"upload-slots-per-torrent": 14,
|
||||
"utp-enabled": true
|
||||
}
|
|
@ -29,7 +29,10 @@
|
|||
nemo.enable = true;
|
||||
keepassxc.enable = true;
|
||||
nicotineplus.enable = true;
|
||||
transmission.enable = true;
|
||||
transmission = {
|
||||
enable = true;
|
||||
tui = true;
|
||||
};
|
||||
};
|
||||
chat = {
|
||||
discord.enable = true;
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.apps.transmission.daemon;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.apps.transmission.daemon = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,7 +5,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./daemon.nix
|
||||
./remote-tui.nix
|
||||
];
|
||||
options.modules.desktop.apps.transmission = {
|
||||
enable = mkEnableOption false;
|
||||
|
@ -14,7 +14,17 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
#TODO(sako):: figure out service
|
||||
users.users.sako.packages = with pkgs; [
|
||||
transmission-gtk
|
||||
transmission
|
||||
];
|
||||
|
||||
home-manager.users.sako = { pkgs, ...}: {
|
||||
xdg.configFile = {
|
||||
transmission-daemon = {
|
||||
source = ../../../../config/transmission-daemon;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
16
modules/desktop/apps/transmission/remote-tui.nix
Normal file
16
modules/desktop/apps/transmission/remote-tui.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.apps.transmission.tui;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.apps.transmission= {
|
||||
tui = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
stig
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue