diff options
Diffstat (limited to '')
-rw-r--r-- | hosts/common/server/monitoring.nix | 12 | ||||
-rw-r--r-- | hosts/common/server/transmission.nix | 27 | ||||
-rw-r--r-- | hosts/profiles/nas.nix | 8 | ||||
-rw-r--r-- | hosts/profiles/server.nix | 5 |
4 files changed, 2 insertions, 50 deletions
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 ]; - }; -} diff --git a/hosts/profiles/nas.nix b/hosts/profiles/nas.nix index 9ac834f..5ec18d0 100644 --- a/hosts/profiles/nas.nix +++ b/hosts/profiles/nas.nix @@ -1,10 +1,4 @@ { config, pkgs, lib, ... }: { - imports = [ - # other profiles - ./server.nix - ../common/server/transmission.nix - ]; - users.groups.nas.gid = 5000; users.users.nas = { uid = 5000; @@ -30,6 +24,8 @@ }; rclone = { enable = true; }; traefik = { enable = true; }; + transmission = { enable = true; }; + metrics-exporter = { enable = true; }; }; services.restic.backups = { diff --git a/hosts/profiles/server.nix b/hosts/profiles/server.nix deleted file mode 100644 index 0029d03..0000000 --- a/hosts/profiles/server.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - imports = [ ../common/server/monitoring.nix ]; -} |