dotfiles.nix/nixos/viridian/containers/adguardhome.nix

22 lines
454 B
Nix
Raw Normal View History

2024-01-23 09:44:06 +08:00
{ ... }:
{
virtualisation.oci-containers.containers = {
adguardhome = {
autoStart = true;
image = "adguard/adguardhome";
ports = [
"53:53" # Plain DNS
"3000:3000" # WEBGUI
];
volumes = [
"/srv/containers/adguardhome/work:/opt/adguardhome/work"
"/srv/containers/adguardhome/conf:/opt/adguardhome/conf"
];
extraOptions = [
"--network=host"
];
};
};
}