diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-25 14:11:14 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-25 14:11:14 +0100 |
| commit | 645e86a443d3f74cc8f9c95cb433cbefed5263cb (patch) | |
| tree | 65ab53d20b29792af60a6c7b1894c4cb192832a5 /hosts/omega-relay/vm.nix | |
| parent | 24ae3d26155fc70cf381422f9dedbbbb33b425d8 (diff) | |
Inital commit for working omega-relay host.
This commit includes:
- Mysql module from umbriel
- Disko configuration for the Ferox VM
- Freshrss module
- Stalwart module
- Vaultwarden module
- Wakapi module
- Uptime Kuma module
- Support for using mysql socket
- Server user that does not depend on full home-manager preset.
- ACME for wilkuu.xyz domains, including all the services.
Diffstat (limited to '')
| -rw-r--r-- | hosts/omega-relay/vm.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/hosts/omega-relay/vm.nix b/hosts/omega-relay/vm.nix index a0da57b..06310f9 100644 --- a/hosts/omega-relay/vm.nix +++ b/hosts/omega-relay/vm.nix @@ -1,17 +1,18 @@ {lib, config,...}: let - tcpFromHost = gport: hport: { + forward = proto: gport: hport: { from = "host"; - proto = "tcp"; + proto = proto; host = { port = hport; - address = "10.0.69.1"; + # address = "10.0.69.1"; }; guest = { port = gport; - address = "10.0.69.2"; + # address = "10.0.69.2"; }; }; in { + # TODO: Make this into a more global module. virtualisation.vmVariant = { addons.virtualisation.isTestVM = true; addons.virtualisation.guest = true; @@ -26,12 +27,15 @@ in { }; virtualisation = { forwardPorts = [ - # (tcpFromHost 80 8080) - # (tcpFromHost 22 8022) + (forward "tcp" 80 9080) + (forward "tcp" 443 9443) + (forward "tcp" 143 9143) + (forward "tcp" 25 9025) + (forward "tcp" 22 9022) ]; memorySize = 2048; # Use 2048MiB memory. cores = 3; graphics = false; }; - }; + }; } |
