summary refs log tree commit diff
path: root/host/Rory-ovh/services/containers/syntest2/container.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-ovh/services/containers/syntest2/container.nix')
-rw-r--r--host/Rory-ovh/services/containers/syntest2/container.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/host/Rory-ovh/services/containers/syntest2/container.nix b/host/Rory-ovh/services/containers/syntest2/container.nix
new file mode 100644

index 0000000..7cea11f --- /dev/null +++ b/host/Rory-ovh/services/containers/syntest2/container.nix
@@ -0,0 +1,59 @@ +{ + nixpkgs-master, + ... +}: + +{ + privateNetwork = true; + autoStart = true; + specialArgs = { }; + nixpkgs = nixpkgs-master; + config = + { + lib, + pkgs, + ... + }: + { + imports = [ + ../shared.nix + ./root.nix + ./services/synapse/synapse-main.nix + ./services/postgres.nix + ( + { + pkgs, + lib, + config, + ... + }: + + { + options.virtualisation = { + isVmVariant = lib.mkOption { + default = false; + example = true; + description = "Whether this build is a VM build."; + type = lib.types.bool; + }; + }; + config = { + virtualisation.vmVariant = { + virtualisation.isVmVariant = true; + }; + }; + } + ) + ]; + + networking.firewall.allowedTCPPorts = [ 8008 ]; + }; + hostAddress = "192.168.100.1"; + localAddress = "192.168.100.21"; + + bindMounts."postgres" = { + hostPath = "/data/dedicated/postgres-syntest2"; + mountPoint = "/data/postgres"; + isReadOnly = false; + }; +}