summaryrefslogtreecommitdiffstats
path: root/configs/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-24 03:12:57 +0000
committertv <tv@krebsco.de>2026-11-24 03:12:57 +0000
commit8737c61c73739838365e39b53c394130f5e61cc1 (patch)
treeaf77d8fcee25bc8f83df02007cd16be1ab591213 /configs/default.nix
parent05470fb3479e7b3fca0502702f6e9a24bab27ecc (diff)
configs: use ne as nameserver
Diffstat (limited to 'configs/default.nix')
-rw-r--r--configs/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/default.nix b/configs/default.nix
index 05c40f79..44600bf2 100644
--- a/configs/default.nix
+++ b/configs/default.nix
@@ -7,6 +7,11 @@
networking.hostId = lib.mkDefault (mylib.hashToLength 8 config.networking.hostName);
networking.hostName = config.krebs.build.host.name;
+ networking.nameservers = let
+ nameserver = config.krebs.hosts.ne;
+ in lib.mkIf (config.krebs.build.host.name != nameserver.name) [
+ nameserver.nets.wiregrill.ip6.addr
+ ];
imports = [
./backup.nix