From 5a9442c55c2bd95984c9a132ec3b6524d3e43839 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 4 Jul 2024 01:13:49 +0530 Subject: [PATCH] rico0: setup transmission --- hosts/rico0/services/apps/default.nix | 3 +++ hosts/rico0/services/apps/transmission.nix | 24 ++++++++++++++++++++++ hosts/rico0/services/default.nix | 2 ++ secrets.yaml | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 hosts/rico0/services/apps/default.nix create mode 100644 hosts/rico0/services/apps/transmission.nix diff --git a/hosts/rico0/services/apps/default.nix b/hosts/rico0/services/apps/default.nix new file mode 100644 index 0000000..ec78b93 --- /dev/null +++ b/hosts/rico0/services/apps/default.nix @@ -0,0 +1,3 @@ +_: { + imports = [ ./transmission.nix ]; +} diff --git a/hosts/rico0/services/apps/transmission.nix b/hosts/rico0/services/apps/transmission.nix new file mode 100644 index 0000000..c9e9acc --- /dev/null +++ b/hosts/rico0/services/apps/transmission.nix @@ -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" ]; +} diff --git a/hosts/rico0/services/default.nix b/hosts/rico0/services/default.nix index fb02349..5a1b834 100644 --- a/hosts/rico0/services/default.nix +++ b/hosts/rico0/services/default.nix @@ -2,6 +2,8 @@ _: { imports = [ ./btrfs.nix ./ssh.nix + + ./apps ]; } diff --git a/secrets.yaml b/secrets.yaml index 73d7e38..d535750 100644 --- a/secrets.yaml +++ b/secrets.yaml @@ -91,8 +91,8 @@ sops: YzdpTitkMHh6VUFtV2FodVF6OWJkTU0KBjC+esgHZ8hTWXwZ+cy4++jLP+gsruHM fmRDhvQu0MNHkjQ8q4VmwRVl10uc8CyTDFTuyDoAhvmnzXHtrg1wpA== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-07-03T13:51:56Z" - mac: ENC[AES256_GCM,data:y/hxvGH/43Dy9p0ZTzU5QVRekOkl4Zl9aHErfQm6Php0M5ED+wXYoNePyM3TKe5oxJRqR4iWHAeP3T0j3FUzmmvB2Io9U3C5qKkysUbWES5t/UHGmtIlFuXsJ0ET4YnbRh80Kdje++Q8KK3wHrzaAM0aqebZzxipU1fZ8NItvQo=,iv:9jw61oPYxIOzJ3Vc4HNyB2ZBoassa3w9QdUTk7sLKUk=,tag:yOBQIxd0hWDTu0aNUxQDbw==,type:str] + lastmodified: "2024-07-03T20:04:33Z" + mac: ENC[AES256_GCM,data:bBHgqZTOIPYyVy6hb6cH+8DePsetM15alNqCff25ttydN8GDawHhQyDFg7DB+F9/QVokgCnlt/ds9lr/c17/kTWI77gQNVT99LlBWNQp7sLB0tBPEaDWpkWYHWznGo1d3L31sxwVDaoVaMyzoDXoQ6orDb8DYhNI2LV1QunKcyI=,iv:AfWN7dV8pxDyBwbpyL3KZAGhsSCuGHBpun3RSGy99zw=,tag:2uhNArDbuLfTYilxE+kTRw==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.8.1