2
0

dnsmasq: set ipv6 autoconfig in "router" mode

dnsmasq is configured to send RA, so the interface it's running on
should not also be accepting RA.
This commit is contained in:
2025-11-11 21:09:19 +00:00
parent 40194d5351
commit 9f21c3036f
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ let
inherit (pkgs) liminix;
in
{
imports = [ ../ipv6-autoconfig ];
options = {
system.service.dnsmasq = mkOption {
type = liminix.lib.types.serviceDefn;
+9 -1
View File
@@ -3,6 +3,7 @@
dnsmasq,
serviceFns,
lib,
svc,
}:
{
interface,
@@ -30,10 +31,17 @@ let
v6s = concatStrings (map (a: ",[${a}]") v6);
in
"--dhcp-host=${mac},${v4}${v6s},${name},${builtins.toString leasetime}";
autoconfig = svc.ipv6.autoconfig.build {
inherit interface;
role = "router";
};
in
longrun {
inherit name;
dependencies = [ interface ];
dependencies = [
interface
autoconfig
];
run = ''
${dnsmasq}/bin/dnsmasq \
--user=${user} \