blob: 290c2916b43f9f891bf630ea7b535972ee96f7e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib, ... }:
let
settings = import ../../settings.nix { inherit lib; };
ports = settings.network.ports;
host = settings.network.host;
in
{
imports = [
./wireless.nix
./ssh.nix
./service-router.service.nix
];
services.service-router = {
enable = true;
routes = {
"home.local" = { inherit host; port = ports.dashboard; };
"sonarr.local" = { inherit host; port = ports.sonarr; };
"radarr.local" = { inherit host; port = ports.radarr; };
"prowlarr.local" = { inherit host; port = ports.prowlarr; };
"jellyfin.local" = { inherit host; port = ports.jellyfin; };
"jellyseerr.local" = { inherit host; port = ports.jellyseerr; };
"syncthing.local" = { inherit host; port = ports.syncthing; };
"lidarr.local" = { inherit host; port = ports.lidarr; };
"ntfy.local" = { inherit host; port = ports.ntfy; };
"grafana.local" = { inherit host; port = ports.grafana; extraOptions.recommendedProxySettings = true; };
};
};
networking = {
hostName = "bacchus";
firewall.enable = true;
};
}
|