39 lines
1,023 B
Nix
39 lines
1,023 B
Nix
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{ depot, ... }:
|
|
let
|
|
inherit (depot.ops) secrets;
|
|
machineSecrets = secrets.machineSpecific.bvm-prosody;
|
|
in {
|
|
imports = [
|
|
../lib/bvm.nix
|
|
];
|
|
|
|
# Networking!
|
|
networking = {
|
|
hostName = "bvm-prosody";
|
|
hostId = "5c62ee63";
|
|
|
|
interfaces.enp1s0 = {
|
|
ipv4.addresses = [{ address = "10.100.0.202"; prefixLength = 23; }];
|
|
};
|
|
interfaces.enp6s0 = {
|
|
ipv4.addresses = [{ address = "92.118.28.3"; prefixLength = 24; }];
|
|
ipv6.addresses = [{ address = "2a09:a441::3"; prefixLength = 32; }];
|
|
};
|
|
defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; };
|
|
defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; };
|
|
};
|
|
my.ip.tailscale = "100.86.22.44";
|
|
|
|
services.coturn = {
|
|
enable = true;
|
|
use-auth-secret = true;
|
|
realm = "turn.lukegb.com";
|
|
static-auth-secret = machineSecrets.turnSecret;
|
|
};
|
|
|
|
system.stateVersion = "21.05";
|
|
}
|