1
0
Fork 0
dotfiles/container/webserver.nix

45 lines
971 B
Nix
Raw Normal View History

2022-07-30 19:19:14 +00:00
{
virtualisation.arion.projects.webserver.settings = {
services = {
2022-07-30 21:13:59 +00:00
ipv6nat = {
2022-07-30 21:16:43 +00:00
service = {
image = "robbertkl/ipv6nat:latest";
name = "ipv6nat";
restart = "always";
2022-07-30 21:36:44 +00:00
networks = [ "webserver_net" ];
2022-07-30 21:16:43 +00:00
capabilities = {
ALL = false;
NET_ADMIN = true;
NET_RAW = true;
};
network_mode = "host";
volumes = [
"/var/run/docker.sock:/var/run/docker.sock:ro"
];
2022-07-30 21:13:59 +00:00
};
};
2022-07-30 19:19:14 +00:00
ifconfig-sexy = {
service = {
image = "ghcr.io/nifoc/ifconfig.sexy-caddy:master";
restart = "always";
2022-07-30 21:36:44 +00:00
networks = [ "webserver_net" ];
2022-07-30 19:19:14 +00:00
};
};
};
2022-07-30 21:13:59 +00:00
2022-07-30 21:36:44 +00:00
networks.net = {
2022-07-30 21:13:59 +00:00
driver = "bridge";
enable_ipv6 = true;
2022-07-30 21:19:00 +00:00
ipam = {
driver = "default";
config = [
{
subnet = "fd00:dead:beef::/48";
}
];
};
2022-07-30 21:13:59 +00:00
};
2022-07-30 19:19:14 +00:00
};
}