Skip to content

Commit

Permalink
core/magicdns: init
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault committed Dec 16, 2020
1 parent 4c6d2d0 commit 7313ab7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions core/default.nix
Expand Up @@ -11,6 +11,7 @@ in
(import ../nix).impermanence-nixos
(import ../nix).sops-nixos
./aspell.nix
./magicdns.nix
./nix.nix
./openssh.nix
./sudo.nix
Expand Down
20 changes: 20 additions & 0 deletions core/magicdns.nix
@@ -0,0 +1,20 @@
{ lib, ... }: {
networking = {
search = [ "meurer.org.beta.tailscale.net" ];
resolvconf.extraConfig = ''
search_domains='meurer.org.beta.tailscale.net'
'';
};

services.unbound = {
enableRootTrustAnchor = lib.mkForce false;
forwardAddresses = lib.mkForce [ "100.100.100.100" ];
};

services.resolved = {
dnssec = lib.mkForce "false";
extraConfig = ''
DNS=100.100.100.100
'';
};
}
1 change: 0 additions & 1 deletion core/resolved.nix
Expand Up @@ -6,7 +6,6 @@
dnssec = "false";
llmnr = "false";
extraConfig = ''
DNS=100.100.100.100
FallbackDNS=1.1.1.1 2606:4700:4700::1111 8.8.8.8 2001:4860:4860::8844
Domains=meurer.org.beta.tailscale.net.
'';
Expand Down
8 changes: 2 additions & 6 deletions core/unbound.nix
@@ -1,15 +1,11 @@
{ lib, ... }: {
networking.networkmanager.dns = "unbound";
networking.search = [ "meurer.org.beta.tailscale.net" ];
networking.resolvconf.extraConfig = ''
search_domains='meurer.org.beta.tailscale.net'
'';

services.resolved.enable = lib.mkForce false;
services.unbound = {
enable = true;
enableRootTrustAnchor = false;
forwardAddresses = [ "100.100.100.100" ];
enableRootTrustAnchor = true;
forwardAddresses = [ "1.1.1.1" "2606:4700:4700::1111" "8.8.8.8" "2001:4860:4860::8844" ];
extraConfig = ''
# This is part of the server clause
infra-cache-slabs: 16
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Expand Up @@ -33,7 +33,7 @@ in
};

fourier = { ... }: {
host = "fourier";
host = "10.0.0.3";
configuration = ./systems/fourier.nix;
};

Expand Down

0 comments on commit 7313ab7

Please sign in to comment.