diff options
author | Rory& <root@rory.gay> | 2024-07-01 19:36:56 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-04 14:45:02 +0200 |
commit | 42860e2f48205589416d576e2ec59acb27bed4c5 (patch) | |
tree | a62b3ba6734f01ddfb3f8741629f15858abc0874 /host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix | |
parent | Move synapse sockets to /run/matrix-synapse instead of /run/synapse (diff) | |
download | Rory-Open-Architecture-42860e2f48205589416d576e2ec59acb27bed4c5.tar.xz |
Add temporary matrix server
Diffstat (limited to 'host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix')
-rwxr-xr-x | host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix b/host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix new file mode 100755 index 0000000..b8781e7 --- /dev/null +++ b/host/Rory-nginx/services/containers/conduwuit-throwaway/container.nix @@ -0,0 +1,26 @@ +{ pkgs, lib, conduit, ... }: + +{ + privateNetwork = true; + autoStart = true; + specialArgs = { + inherit conduit; + }; + config = { lib, pkgs, conduit, ... }: { + imports = [ ./root.nix ]; + environment.etc."resolv.conf".text = '' + nameserver 8.8.8.8 + nameserver 8.4.4.8 + nameserver 1.1.1.1 + nameserver 1.0.0.1 + ''; + networking.firewall = { + enable = true; + allowedTCPPorts = [ 80 5432 ]; + }; + }; + hostAddress = "192.168.100.16"; + localAddress = "192.168.100.17"; + hostAddress6 = "fc00::5"; + localAddress6 = "fc00::6"; +} \ No newline at end of file |