From f61e0fe45e4f237828df01ee3bacf4bae78fdcf0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 6 Apr 2022 12:49:53 -0700 Subject: refactor transmission and metrics-exporter --- hosts/common/server/monitoring.nix | 12 ------------ hosts/common/server/transmission.nix | 27 --------------------------- 2 files changed, 39 deletions(-) delete mode 100644 hosts/common/server/monitoring.nix delete mode 100644 hosts/common/server/transmission.nix (limited to 'hosts/common') diff --git a/hosts/common/server/monitoring.nix b/hosts/common/server/monitoring.nix deleted file mode 100644 index 82cef4d..0000000 --- a/hosts/common/server/monitoring.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - services.prometheus = { - exporters = { - node = { - enable = true; - enabledCollectors = [ "tcpstat" "systemd" "interrupts" ]; - }; - }; - }; -} diff --git a/hosts/common/server/transmission.nix b/hosts/common/server/transmission.nix deleted file mode 100644 index 2eae585..0000000 --- a/hosts/common/server/transmission.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - services.transmission = { - enable = true; - group = "nas"; - performanceNetParameters = true; - home = "/data/fast/torrents"; - settings = { - dht-enabled = false; - cache-size-mb = 128; - peer-port = 52213; - peer-port-random-low = 49152; - peer-port-random-high = 65535; - message-level = 2; - - rpc-enabled = true; - rpc-host-whitelist-enabled = false; - verify-threads = 4; - }; - }; - - networking.firewall = { - allowedTCPPorts = [ 52213 ]; - allowedUDPPorts = [ 52213 ]; - }; -} -- cgit 1.4.1