rico0: setup transmission
This commit is contained in:
parent
6290214862
commit
5a9442c55c
4 changed files with 31 additions and 2 deletions
3
hosts/rico0/services/apps/default.nix
Normal file
3
hosts/rico0/services/apps/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
imports = [ ./transmission.nix ];
|
||||||
|
}
|
24
hosts/rico0/services/apps/transmission.nix
Normal file
24
hosts/rico0/services/apps/transmission.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.transmission = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.transmission_4;
|
||||||
|
downloadDirPermissions = "775";
|
||||||
|
home = "/mnt/data/Torrents";
|
||||||
|
webHome = pkgs.flood-for-transmission;
|
||||||
|
openPeerPorts = true;
|
||||||
|
extraFlags = [
|
||||||
|
"--encryption-required"
|
||||||
|
"--no-portmap"
|
||||||
|
"--dht"
|
||||||
|
"--lpd"
|
||||||
|
"--allowed" "127.0.0.1,10.10.10.*"
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
peer-port = 51515;
|
||||||
|
rpc-bind-address = "10.10.10.10";
|
||||||
|
rpc-port = 9091;
|
||||||
|
watch-dir-enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.services.transmission.after = [ "mnt-data.mount" ];
|
||||||
|
}
|
|
@ -2,6 +2,8 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./btrfs.nix
|
./btrfs.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
|
||||||
|
./apps
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,8 +91,8 @@ sops:
|
||||||
YzdpTitkMHh6VUFtV2FodVF6OWJkTU0KBjC+esgHZ8hTWXwZ+cy4++jLP+gsruHM
|
YzdpTitkMHh6VUFtV2FodVF6OWJkTU0KBjC+esgHZ8hTWXwZ+cy4++jLP+gsruHM
|
||||||
fmRDhvQu0MNHkjQ8q4VmwRVl10uc8CyTDFTuyDoAhvmnzXHtrg1wpA==
|
fmRDhvQu0MNHkjQ8q4VmwRVl10uc8CyTDFTuyDoAhvmnzXHtrg1wpA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-07-03T13:51:56Z"
|
lastmodified: "2024-07-03T20:04:33Z"
|
||||||
mac: ENC[AES256_GCM,data:y/hxvGH/43Dy9p0ZTzU5QVRekOkl4Zl9aHErfQm6Php0M5ED+wXYoNePyM3TKe5oxJRqR4iWHAeP3T0j3FUzmmvB2Io9U3C5qKkysUbWES5t/UHGmtIlFuXsJ0ET4YnbRh80Kdje++Q8KK3wHrzaAM0aqebZzxipU1fZ8NItvQo=,iv:9jw61oPYxIOzJ3Vc4HNyB2ZBoassa3w9QdUTk7sLKUk=,tag:yOBQIxd0hWDTu0aNUxQDbw==,type:str]
|
mac: ENC[AES256_GCM,data:bBHgqZTOIPYyVy6hb6cH+8DePsetM15alNqCff25ttydN8GDawHhQyDFg7DB+F9/QVokgCnlt/ds9lr/c17/kTWI77gQNVT99LlBWNQp7sLB0tBPEaDWpkWYHWznGo1d3L31sxwVDaoVaMyzoDXoQ6orDb8DYhNI2LV1QunKcyI=,iv:AfWN7dV8pxDyBwbpyL3KZAGhsSCuGHBpun3RSGy99zw=,tag:2uhNArDbuLfTYilxE+kTRw==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.8.1
|
version: 3.8.1
|
||||||
|
|
Loading…
Reference in a new issue