diff --git a/hosts/tsumugi/arr/mkPortRemap.nix b/hosts/tsumugi/arr/mkPortRemap.nix deleted file mode 100644 index 390e220..0000000 --- a/hosts/tsumugi/arr/mkPortRemap.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ - config, - lib, -}: -let - inherit (config) system; -in -{ - portRemap = - { - id, - containerPort, - hostPort, - config ? { }, - ... - }: - { - autoStart = true; - privateNetwork = true; - hostBridge = "br0"; - localAddress = "192.168.100.${toString id}/24"; - forwardPorts = [ - { - containerPort = containerPort; - hostPort = hostPort; - protocol = "tcp"; - } - ]; - bindMounts."/mnt/media" = { - mountPoint = "/mnt/media"; - hostPath = "/mnt/media"; - isReadOnly = false; - }; - config = lib.mkMerge [ - { - system = { inherit (system) stateVersion; }; - networking = { - firewall.enable = true; - useHostResolvConf = lib.mkForce false; - defaultGateway.address = "192.168.100.1"; - nameservers = [ - "10.0.4.1" - ]; - }; - services.resolved.enable = true; - } - config - ]; - }; -} diff --git a/hosts/tsumugi/arr/sonarrAnime.nix b/hosts/tsumugi/arr/sonarrAnime.nix index 162ed04..7c828f4 100644 --- a/hosts/tsumugi/arr/sonarrAnime.nix +++ b/hosts/tsumugi/arr/sonarrAnime.nix @@ -9,7 +9,6 @@ let profileName = "1080p Anime"; inherit ((import ./mkRecyclarrScore.nix) profileName) mkScores mkScore; - inherit ((import ./mkPortRemap.nix) { inherit config lib; }) portRemap; in { containers.sonarrAnime = {