1
0
Fork 0

full rewrite, first commit

This commit is contained in:
Philipp 2025-02-05 17:58:09 +01:00
commit a83c37a638
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
24 changed files with 4358 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, config, pkgs, namespace, ... }:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.container.technitium;
in
{
options.${namespace}.container.technitium = {
enable = mkEnableOption "Technitium";
};
config = mkIf cfg.enable {
virtualisation.oci-containers.containers.technitium = {
image = "technitium/dns-server";
hostname = "blarm-dns";
ports = [
"192.168.1.202:5380:5380"
"192.168.1.202:53:53"
"[fd00:192:168:1::202]:53:53"
"[fd00:192:168:1::202]:5380:5380"
];
volumes = [ "config:/etc/dns" ];
};
};
}