blob: f2dae8a73de85d3ee67634e876bcd64162542da3 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
{ settings, ... }:
let
ports = settings.network.ports;
host = settings.network.host;
in
{
imports = [
./wireless.nix
./ssh.nix
../../services/service-router.service.nix
../../services/bacchus-dns.service.nix
];
networking = {
hostName = "bacchus";
firewall.enable = true;
};
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; extraNginxOptions.recommendedProxySettings = true; };
# "send.local" = { inherit host; port = ports.send; };
"photos.local" = { inherit host; port = ports.immich; };
"news.local" = { inherit host; port = ports.yarr; };
"librarian.local" = { inherit host; port = ports.lazylibrarian; };
};
};
# Host mappings defined by service-router
services.bacchus-dns = {
enable = true;
port = 53;
openFirewall = true;
fallback = [ "1.1.1.1" "8.8.8.8" ];
};
}
|