1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

Merge branch 'master' of github:mdlayher/homelab

This commit is contained in:
Matt Layher 2021-06-29 14:30:15 -04:00
commit ca6421d0f0

View file

@ -1,11 +1,16 @@
{ lib, ... }:
let vars = import ./lib/vars.nix;
let
vars = import ./lib/vars.nix;
unstable = import <nixos-unstable-small> { };
in {
services.corerad = {
enable = true;
# Use unstable for newer CoreRAD.
package = unstable.corerad;
settings = with vars.interfaces; {
# Base non-interface configuration.
debug = {
@ -33,8 +38,8 @@ in {
# Advertise all /64 prefixes on the interface.
prefix = [{ prefix = "::/64"; }];
# Use the router's ULA address as a DNS server.
rdnss = [{ servers = [ ifi.ipv6.ula ]; }];
# Automatically use the appropriate interface address as a DNS server.
rdnss = [{ servers = ["::"]; }];
# Configure DNS search on some trusted LANs, or omit otherwise.
dnssl = [{ domain_names = [ vars.domain ]; }];