depot/ops/nixos/bvm-prosody/default.nix

40 lines
1 KiB
Nix
Raw Normal View History

# 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 {
imports = [
../lib/bvm.nix
];
# Networking!
networking = {
hostName = "bvm-prosody";
hostId = "5c62ee63";
interfaces.enp1s0 = {
ipv4.addresses = [{ address = "10.100.0.202"; prefixLength = 23; }];
};
2021-04-01 15:50:27 +00:00
interfaces.enp6s0 = {
ipv4.addresses = [{ address = "92.118.28.3"; prefixLength = 24; }];
ipv6.addresses = [{ address = "2a09:a441::3"; prefixLength = 32; }];
};
networking.defaultGateway = { address = "92.118.28.1"; interface = "enp6s0"; };
networking.defaultGateway6 = { address = "2a09:a441::1"; interface = "enp6s0"; };
};
2021-03-28 14:33:54 +00:00
my.ip.tailscale = "100.86.22.44";
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;
};
system.stateVersion = "21.05";
}