host/oparic: add oparic container
This commit is contained in:
@@ -119,5 +119,23 @@
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
# NixOS container: o4dev
|
||||
containers.o4dev = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "10.233.1.1";
|
||||
localAddress = "10.233.1.2";
|
||||
bindMounts."/data" = {
|
||||
hostPath = "/home/origami/data";
|
||||
isReadOnly = false;
|
||||
};
|
||||
forwardPorts = [{
|
||||
containerPort = 80;
|
||||
hostPort = 40000;
|
||||
protocol = "tcp";
|
||||
}];
|
||||
path = inputs.container-flake.nixosConfigurations.o4dev.config.system.build.toplevel;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user