host/oparic: add oparic container

This commit is contained in:
2026-05-17 15:26:19 +08:00
parent 0fac7610c7
commit b0235e5e5a
3 changed files with 598 additions and 6 deletions
+18
View File
@@ -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";
}