feat(utsuho): dnsmasq

This commit is contained in:
arcnmx 2024-03-25 15:18:55 -07:00
parent 0fbd142a16
commit 6ad465e779
17 changed files with 337 additions and 43 deletions

View file

@ -14,10 +14,10 @@
accessHostFor = {
hostName,
system ? nixosFor hostName,
access ? "local",
network ? "lan",
...
}: let
host = system.lib.access.hostnameForNetwork.${access} or (throw "unsupported access ${access}");
host = access.getHostnameFor hostName network;
in
if hostName == config.networking.hostName
then "localhost"