2021-03-28 13:10:27 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-03-28 22:52:04 +00:00
|
|
|
{ depot, ... }:
|
2021-03-28 22:46:55 +00:00
|
|
|
let
|
|
|
|
inherit (depot.ops) secrets;
|
|
|
|
machineSecrets = secrets.machineSpecific.bvm-prosody;
|
|
|
|
in {
|
2021-03-28 13:10:27 +00:00
|
|
|
imports = [
|
|
|
|
../lib/bvm.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Networking!
|
|
|
|
networking = {
|
|
|
|
hostName = "bvm-prosody";
|
|
|
|
hostId = "5c62ee63";
|
|
|
|
|
|
|
|
interfaces.enp1s0 = {
|
|
|
|
ipv4.addresses = [{ address = "10.100.0.202"; prefixLength = 23; }];
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 14:33:54 +00:00
|
|
|
my.ip.tailscale = "100.86.22.44";
|
2021-03-28 13:10:27 +00:00
|
|
|
|
2021-03-28 22:46:55 +00:00
|
|
|
services.coturn = {
|
|
|
|
enable = true;
|
|
|
|
use-auth-secret = true;
|
|
|
|
realm = "turn.lukegb.com";
|
|
|
|
static-auth-secret = machineSecrets.turnSecret;
|
|
|
|
};
|
|
|
|
|
2021-03-28 13:10:27 +00:00
|
|
|
system.stateVersion = "21.05";
|
|
|
|
}
|