pek0: qbittorrent-nox -> transmission
This commit is contained in:
parent
8b9cf53351
commit
7c0764a270
4 changed files with 37 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
27
hosts/blacksteel/services/transmission.nix
Normal file
27
hosts/blacksteel/services/transmission.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue