commit 4d81c4f6c4709cd0bcd59835c03e9b3fd66e493e
parent d36312c535745750e8a430125ab1841dcc0f5b9c
Author: Daniel Barlow <dan@telent.net>
Date: Sun, 29 Nov 2026 21:00:10 +0000
gateway profile : pass useHostsFile through
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/profiles/gateway.nix b/modules/profiles/gateway.nix
@@ -55,6 +55,7 @@ in
end = mkOption { type = types.int; };
hosts = mkOption { type = types.attrs; };
localDomain = mkOption { type = types.str; };
+ useHostsFile = mkOption { type = types.bool; };
};
};
@@ -149,7 +150,7 @@ in
"::,constructor:$(output ${interface} ifname),ra-stateless"
];
- hosts = dcfg.hosts;
+ inherit (dcfg) hosts useHostsFile;
upstreams = [ "/${dcfg.localDomain}/" ];
domain = dcfg.localDomain;
};