nixos/dns.nix

25 lines
712 B
Nix

{ pkgs, config, ... }: let
mewp-nixos = builtins.fetchTarball {
url = "https://gitlab.com/mewp/mewp-nixos/-/archive/7927ac83f90d82f894877ac1ede04a54ed4e6d24/mewp-nixos-7927ac83f90d82f894877ac1ede04a54ed4e6d24.tar.gz";
sha256 = "sha256:1qi0qfibcvs4fk5m842fkfd413bh7rhmx396223afhj9v6wb1fvn";
};
in {
imports = [
"${mewp-nixos}/dns.nix"
];
config = {
mewp.dns.zones."news.cebula.camp" = {
SOA = {
nameServer = "szalotka.cebula.camp";
adminEmail = "hostmaster@cebula.camp";
serial = 0;
};
NS = [ "szalotka.cebula.camp." ];
A = [ "135.181.235.222" ];
MX = [ "10 szalotka.cebula.camp." ];
TXT = [ "v=spf1 mx -all" ];
};
};
}