summaryrefslogtreecommitdiff
path: root/nix/systems/spontaneity/default.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2026-02-11 14:43:01 -0800
committerPreston Pan <ret2pop@gmail.com>2026-02-11 14:43:01 -0800
commit6a4f95482fa2c0faeafa028eae164d00c6418ac3 (patch)
tree8f87a90ae697b1a1ea6c3ed63c59d5e22de55425 /nix/systems/spontaneity/default.nix
parenta3106cdc192a64daa6421dc63ab3dd6000bdc112 (diff)
add vps stuff; fix internet issues plauging my devices
Diffstat (limited to 'nix/systems/spontaneity/default.nix')
-rw-r--r--nix/systems/spontaneity/default.nix46
1 files changed, 32 insertions, 14 deletions
diff --git a/nix/systems/spontaneity/default.nix b/nix/systems/spontaneity/default.nix
index c7d7ed6..7d637bf 100644
--- a/nix/systems/spontaneity/default.nix
+++ b/nix/systems/spontaneity/default.nix
@@ -26,6 +26,10 @@
boot.loader.grub.device = "nodev";
networking = {
+ extraHosts = ''
+ 127.0.0.1 livekit.${config.monorepo.vars.orgHost}
+ 127.0.0.1 matrix.${config.monorepo.vars.orgHost}
+ '';
interfaces.ens3.ipv4.addresses = [
{
address = ipv4addr;
@@ -39,17 +43,29 @@
}
];
defaultGateway = "66.42.84.1";
- firewall.allowedTCPPorts = [
- 80
- 143
- 443
- 465
- 587
- 993
- 6697
- 6667
- 8448
- ];
+ firewall = {
+ allowedTCPPorts = [
+ 80
+ 143
+ 443
+ 465
+ 587
+ 993
+ 3478
+ 5349
+ 6697
+ 6667
+ 7881
+ 8443
+ 8448
+ ];
+ allowedUDPPorts = [
+ 3478 5349 7882
+ ];
+ allowedUDPPortRanges = [
+ { from = 49152; to = 65535; }
+ ];
+ };
domains = {
enable = true;
baseDomains = {
@@ -64,12 +80,14 @@
};
subDomains = {
"${config.monorepo.vars.remoteHost}" = {};
+ "notes.${config.monorepo.vars.remoteHost}" = {
+ a.data = "45.76.87.125";
+ };
"matrix.${config.monorepo.vars.remoteHost}" = {};
"www.${config.monorepo.vars.remoteHost}" = {};
- "mail.${config.monorepo.vars.remoteHost}" = {
- mx.data = "10 mail.${config.monorepo.vars.remoteHost}.";
- };
+ "mail.${config.monorepo.vars.remoteHost}" = {};
+ "livekit.${config.monorepo.vars.orgHost}" = {};
"${config.monorepo.vars.orgHost}" = {};
"git.${config.monorepo.vars.orgHost}" = {};
"matrix.${config.monorepo.vars.orgHost}" = {};