From 91e957ced7fc6c83caadbaa50495f8c04ef46f4a Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 4 Sep 2023 23:07:13 +0100 Subject: [PATCH] static leases for rotuer --- .gitignore | 1 + examples/rotuer.nix | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 7807076..f86642b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ result-* *.qcow2 _build *-secrets.nix +examples/static-leases.nix diff --git a/examples/rotuer.nix b/examples/rotuer.nix index 91ef1e4..4a677b0 100644 --- a/examples/rotuer.nix +++ b/examples/rotuer.nix @@ -97,8 +97,17 @@ in rec { inherit interface; ranges = [ "10.8.0.10,10.8.0.240" + # ra-stateless: sends router advertisements with the O and A + # bits set, and provides a stateless DHCP service. The client + # will use a SLAAC address, and use DHCP for other + # configuration information. "::,constructor:$(output ${interface} ifname),ra-stateless" ]; + + # You can add static addresses for the DHCP server here. I'm + # not putting my actual MAC addresses in a public git repo ... + hosts = { } // lib.optionalAttrs (builtins.pathExists ./static-leases.nix) (import ./static-leases.nix); + domain = "fake.liminix.org"; };