transmission fixed

This commit is contained in:
Elias Gasparis 2025-05-07 15:50:08 +08:00
parent 2c6cec5178
commit 2eb97ddc2c
3 changed files with 43 additions and 15 deletions

View file

@ -49,15 +49,20 @@
# ZFS # ZFS
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;
# Nix settings # Nix settings
nix = { nix = {
settings = { settings = {
#experimental-features = [ "nix-command" "flakes" ]; #experimental-features = [ "nix-command" "flakes" ];
download-buffer-size = "2G"; download-buffer-size = "2G";
warn-dirty = false; warn-dirty = false;
};
# garbage collection # garbage collection
gc.automatic = true; gc = {
optimise.automatic = true; automatic = true;
};
optimise = {
automatic = true;
}; };
}; };
@ -141,6 +146,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
fastfetch fastfetch
htop htop
btop btop
hollywood
curl curl
wget wget
restic restic

View file

@ -0,0 +1,18 @@
# Put this file in /var/lib/secrets/transmission/settings.json
{
"peer-port": 51413,
"encryption": 1,
"rpc-enabled": true,
"rpc-bind-address": "0.0.0.0",
"rpc-host-whitelist-enabled": true,
"rpc-host-whitelist": "*.knossos.arkadi.one,knossos,*.arkadi.one",
"rpc-whitelist-enabled": true,
"rpc-whitelist": "127.0.0.1,192.168.*.*,100.*.*.*",
"rpc-authentication-required": true,
"rpc-username": "elias",
"rpc-password": "family-name-spark727"
}

View file

@ -2,23 +2,27 @@
{ {
# https://mynixos.com/nixpkgs/options/services.transmission # https://mynixos.com/nixpkgs/options/services.transmission
services.transmission = { services.transmission = {
enable = true; enable = true;
package = pkgs.transmission_4; credentialsFile = "/var/lib/secrets/transmission/settings.json";
openFirewall = true; openFirewall = true;
openPeerPorts = true; # openPeerPorts = true;
openRPCPort = true; openRPCPort = true;
settings = {
rpc-bind-address = "0.0.0.0";
rpc-whitelist = "127.0.0.1,100.86.169.8,100.120.170.60"; #Whitelist your remote machine (10.0.0.1 in this example)
}; };
# environment.systemPackages = [ # NOTE
# pkgs.transmission # credentialsFile example in transmission-settings.json in this directory
# ]; # move and put into: /var/lib/secrets/transmission/settings.json
}; # =====
# NOTES TO FIX
#added user here: https://mynixos.com/nixpkgs/option/services.transmission.credentialsFile
#git hub issue
#https://mynixos.com/nixpkgs/option/services.transmission.credentialsFile
#config options
#https://github.com/transmission/transmission/blob/main/docs/Editing-Configuration-Files.md
#settings.json options