blob: dffc6a692a40f6351e06eeeec2c1da5d18d8b4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# SPDX-FileCopyrightText: V <v@unfathomable.blue>
# SPDX-License-Identifier: OSL-3.0
{ config, ... }:
{
services.murmur = {
enable = true;
# This isn't actually the hostname, it's the address to bind on.
hostName = builtins.head config.networking.wireguard.interfaces.wg0.ips;
# Another misleading name— it's also used as the root channel name.
registerName = "Pool";
};
networking.firewall.interfaces.wg0 = {
allowedTCPPorts = [ config.services.murmur.port ];
allowedUDPPorts = [ config.services.murmur.port ];
};
}
|