mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-17 01:55:10 +01:00
init new infra
This commit is contained in:
parent
83458998aa
commit
0825d85c93
6 changed files with 206 additions and 0 deletions
43
newinfra/nix/modules/dns/noratrieb.dev.nix
Normal file
43
newinfra/nix/modules/dns/noratrieb.dev.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# https://github.com/nix-community/dns.nix
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
# TODO: do this in a central place
|
||||
dns = import (pkgs.fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "dns.nix";
|
||||
rev = "v1.1.2";
|
||||
hash = "sha256-EHiDP2jEa7Ai5ZwIf5uld9RVFcV77+2SUxjQXwJsJa0=";
|
||||
});
|
||||
|
||||
data = with dns.lib.combinators;
|
||||
{
|
||||
SOA = {
|
||||
nameServer = "154.38.163.74"; #"ns1.noratrieb.dev";
|
||||
adminEmail = "void@noratrieb.dev";
|
||||
serial = 2024072601;
|
||||
};
|
||||
|
||||
NS = [
|
||||
"154.38.163.74" #"ns1.noratrieb.dev"
|
||||
#"ns2.noratrieb.dev"
|
||||
];
|
||||
|
||||
A = [ (a "161.97.165.1") ];
|
||||
AAAA = [ ];
|
||||
|
||||
subdomains = {
|
||||
www.CNAME = [ (cname "noratrieb.dev") ];
|
||||
pronouns.TXT = [
|
||||
"she/her"
|
||||
];
|
||||
|
||||
#ns1 = (host "154.38.163.74");
|
||||
|
||||
#"dns1.infra" = (a "154.38.163.74");
|
||||
};
|
||||
};
|
||||
in
|
||||
pkgs.writeTextFile {
|
||||
name = "noratrieb.dev.zone";
|
||||
text = dns.lib.toString "noratrieb.dev" data;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue