aboutsummaryrefslogtreecommitdiff
path: root/modules/tlmp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/tlmp/default.nix66
1 files changed, 54 insertions, 12 deletions
diff --git a/modules/tlmp/default.nix b/modules/tlmp/default.nix
index c70cc5c..9509ad1 100644
--- a/modules/tlmp/default.nix
+++ b/modules/tlmp/default.nix
@@ -1,8 +1,17 @@
-{ self, config, lib, pkgs, ... }:
+{
+ self,
+ config,
+ lib,
+ pkgs,
+ ...
+}:
with self.lib.nginx;
{
- imports = [ ./rtorrent.nix ./slsk.nix ];
+ imports = [
+ ./rtorrent.nix
+ ./slsk.nix
+ ];
security.acme.certs = {
"media.cocaine.farm" = {
@@ -11,11 +20,15 @@ with self.lib.nginx;
};
users = {
- users.media = {
- isSystemUser = true;
- group = "media";
+ users = {
+ media = {
+ isSystemUser = true;
+ group = "media";
+ };
+ audron.extraGroups = [ "media" ];
+ magin.extraGroups = [ "media" ];
};
- groups.media = {};
+ groups.media = { };
};
services.jellyfin = {
@@ -32,7 +45,7 @@ with self.lib.nginx;
services.sonarr = {
enable = true;
- package = pkgs.callPackage ./sonarr.nix {};
+ package = pkgs.callPackage ./sonarr.nix { };
user = "media";
group = "media";
};
@@ -44,7 +57,15 @@ with self.lib.nginx;
services.rutorrent = {
enable = true;
hostName = "torrent.media.cocaine.farm";
- plugins = lib.mkForce [ "httprpc" "data" "diskspace" "edit" "erasedata" "theme" "trafic" ];
+ plugins = lib.mkForce [
+ "httprpc"
+ "data"
+ "diskspace"
+ "edit"
+ "erasedata"
+ "theme"
+ "trafic"
+ ];
nginx.enable = true;
};
@@ -68,10 +89,12 @@ with self.lib.nginx;
"torrent.media.cocaine.farm" = domainAuth "media.cocaine.farm";
"torrent.local" = {
- listen = [{
- addr = "10.10.0.2";
- port = 80;
- }];
+ listen = [
+ {
+ addr = "10.10.0.2";
+ port = 80;
+ }
+ ];
serverAliases = [ "phaenn.wg.vapor.systems" ];
@@ -105,6 +128,25 @@ with self.lib.nginx;
};
};
+ services.nfs = {
+ server = {
+ enable = true;
+ exports = ''
+ /mnt/media 10.10.0.0/24(rw,fsid=0,no_subtree_check)
+ '';
+ };
+
+ settings = {
+ nfsd = {
+ vers3 = false;
+ vers4 = true;
+ "vers4.0" = false;
+ "vers4.1" = false;
+ "vers4.2" = true;
+ };
+ };
+ };
+
networking.hosts = {
"10.10.0.2" = [ "torrent.local" ];
};