22 lines
450 B
Nix
22 lines
450 B
Nix
|
{
|
||
|
containers.test = {
|
||
|
autoStart = true;
|
||
|
privateNetwork = true;
|
||
|
hostAddress = "192.168.100.10";
|
||
|
localAddress = "192.168.100.11";
|
||
|
config = { config, pkgs, ... }: {
|
||
|
system.stateVersion = "24.05";
|
||
|
|
||
|
networking = {
|
||
|
firewall = {
|
||
|
enable = true;
|
||
|
allowedTCPPorts = [ 80 ];
|
||
|
};
|
||
|
useHostResolvConf = mkForce false;
|
||
|
};
|
||
|
|
||
|
services.resolved.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|