mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(utsuho): dnsmasq
This commit is contained in:
parent
0fbd142a16
commit
6ad465e779
17 changed files with 337 additions and 43 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue