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
services.zfs.autoScrub.enable = true;
# Nix settings
nix = {
settings = {
#experimental-features = [ "nix-command" "flakes" ];
download-buffer-size = "2G";
warn-dirty = false;
# garbage collection
gc.automatic = true;
optimise.automatic = true;
};
# garbage collection
gc = {
automatic = true;
};
optimise = {
automatic = true;
};
};
@ -141,6 +146,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
fastfetch
htop
btop
hollywood
curl
wget
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,24 +2,28 @@
{
# https://mynixos.com/nixpkgs/options/services.transmission
services.transmission = {
enable = true;
package = pkgs.transmission_4;
credentialsFile = "/var/lib/secrets/transmission/settings.json";
openFirewall = true;
openPeerPorts = true;
# openPeerPorts = 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 = [
# pkgs.transmission
# ];
};
# NOTE
# 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
}