pek0: qbittorrent-nox -> transmission

This commit is contained in:
Guanran Wang 2024-08-31 07:51:49 +08:00
parent 8b9cf53351
commit 7c0764a270
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
4 changed files with 37 additions and 9 deletions

View file

@ -18,8 +18,8 @@
./services/mastodon.nix
./services/matrix.nix
./services/minecraft.nix
./services/qbittorrent.nix
./services/samba.nix
./services/transmission.nix
];
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
# TODO: https://github.com/NixOS/nixpkgs/pull/287923
# currently running qbittorrent-nox with tmux :c
environment.systemPackages = with pkgs; [
qbittorrent-nox
];
}

View file

@ -1,3 +1,4 @@
{ config, ... }:
{
services.samba = {
enable = true;
@ -12,4 +13,12 @@
enable = true;
openFirewall = true;
};
users.users."guanranwang" = {
uid = 1000;
isNormalUser = true;
createHome = false;
useDefaultShell = false;
hashedPasswordFile = config.sops.secrets."hashed-passwd".path;
};
}

View file

@ -0,0 +1,27 @@
{ pkgs, ... }:
{
services.transmission = {
enable = true;
openRPCPort = true;
webHome = pkgs.flood-for-transmission;
settings = {
rpc-bind-address = "0.0.0.0";
rpc-port = 9080;
# tailscale
rpc-whitelist = "100.*.*.*";
rpc-host-whitelist = "blacksteel";
incomplete-dir = "/mnt/torrent/downloading";
download-dir = "/mnt/torrent";
speed-limit-up-enabled = true;
speed-limit-up = 1000;
speed-limit-down-enabled = true;
speed-limit-down = 4000;
ratio-limit-enabled = true;
ratio-limit = 2;
};
};
}