transmission fixed
This commit is contained in:
parent
2c6cec5178
commit
2eb97ddc2c
3 changed files with 43 additions and 15 deletions
|
@ -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
|
};
|
||||||
gc.automatic = true;
|
# garbage collection
|
||||||
optimise.automatic = true;
|
gc = {
|
||||||
|
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
|
||||||
|
|
18
services/transmission-settings.json
Normal file
18
services/transmission-settings.json
Normal 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"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -2,24 +2,28 @@
|
||||||
{
|
{
|
||||||
# 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 = [
|
|
||||||
# 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue