mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
dns
This commit is contained in:
parent
7fdbf50900
commit
ddd851ae6e
4 changed files with 106 additions and 14 deletions
|
|
@ -1,15 +1,7 @@
|
|||
# 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;
|
||||
data = with pkgs.nix-dns.lib.combinators;
|
||||
let
|
||||
dns1 = host "154.38.163.74" null;
|
||||
dns2 = host "128.140.3.7" "2a01:4f8:c2c:d616::";
|
||||
|
|
@ -35,8 +27,7 @@ let
|
|||
"she/her"
|
||||
];
|
||||
|
||||
# ns1 = dns1;
|
||||
# ns2 = dns2;
|
||||
newtest.TXT = [ "uwu it works" ];
|
||||
|
||||
infra.subdomains = {
|
||||
inherit dns1;
|
||||
|
|
@ -47,5 +38,5 @@ let
|
|||
in
|
||||
pkgs.writeTextFile {
|
||||
name = "noratrieb.dev.zone";
|
||||
text = dns.lib.toString "noratrieb.dev" data;
|
||||
text = pkgs.nix-dns.lib.toString "noratrieb.dev" data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue