nixos/nixos/hosts/pihole/default.nix
2024-05-31 02:20:46 -04:00

38 lines
1,002 B
Nix

{ inputs, pkgs, config, lib, ... }: {
imports = [
../../templates/proxmox-lxc.nix
../../server.nix
../../features/dns-cache.nix
../../features/podman.nix
];
networking.hostName = "pihole";
system.stateVersion = "24.05";
nixpkgs.hostPlatform = "x86_64-linux";
networking.firewall = {
allowedTCPPorts = [ 53 80 ];
allowedUDPPorts = [ 53 ];
};
# virtualisation.oci-containers.containers = {
# pihole = {
# image = "registry.docker.io/pihole/pihole";
# ports = [
# "53:53/tcp"
# "53:53/udp"
# "80:80/tcp"
# ];
# volumes = [
# "etc-pihole:/etc/pihole"
# "etc-dnsmasq.d:/etc/dnsmasq.d"
# ];
# environment = {
# TZ = config.time.timeZone;
# VIRTUAL_HOST = "pihole.hoki-porgy.ts.net";
# PROXY_LOCATION = "pihole.hoki-porgy.ts.net";
# # FTLCONF_LOCAL_IPV4 = config.networking.interfaces.tailscale0.ipv4.addresses[0].address;
# };
# };
# };
}