srb2: Add hosting support

This commit is contained in:
Donovan Glover 2023-07-15 17:03:48 -04:00
parent 00a1c99987
commit 59b5f55e6d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -4,6 +4,8 @@
containers.srb2 = { containers.srb2 = {
privateNetwork = true; privateNetwork = true;
ephemeral = true; ephemeral = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.11";
bindMounts = { bindMounts = {
"/home/user/.srb2" = { "/home/user/.srb2" = {
@ -41,6 +43,13 @@
../setup.nix ../setup.nix
]; ];
networking.nat.forwardPorts = [
{
destination = "192.168.100.11:5029";
sourcePort = 5029;
}
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
srb2 srb2
]; ];