refactor(flake)!: machines
-> hosts
This commit is contained in:
parent
703cd0264b
commit
a881c5d7e1
33 changed files with 52 additions and 45 deletions
31
hosts/nixos/x86_64-linux/jeeves/transmission.nix
Normal file
31
hosts/nixos/x86_64-linux/jeeves/transmission.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tremc
|
||||
];
|
||||
|
||||
services = {
|
||||
transmission = {
|
||||
enable = true;
|
||||
package = pkgs.transmission_4;
|
||||
openRPCPort = true;
|
||||
webHome = pkgs.flood-for-transmission;
|
||||
# TODO: `credentialsFile` for RPC password with agenix
|
||||
settings = {
|
||||
download-dir = "/data/torrents/download";
|
||||
incomplete-dir = "/data/torrents/incomplete";
|
||||
incomplete-dir-enabled = true;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-whitelist = "127.0.0.1,192.168.*.*,10.100.0.*,*.local";
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
virtualHosts."transmission.jeeves.local" = {
|
||||
enableACME = false;
|
||||
forceSSL = false;
|
||||
locations."/".proxyPass = "http://127.0.0.1:9091";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue