Add extraHosts on cj to set /etc/hosts

This commit is contained in:
Jacob Hinkle 2023-06-13 07:11:22 -04:00
parent 67080d07bc
commit 276cd1ae5d

View File

@ -54,6 +54,13 @@
# networking.hostId is required for ZFS # networking.hostId is required for ZFS
hostId = "d9aef7b3"; hostId = "d9aef7b3";
# Aliases subdomains we serve here. Since we bypass pihole locally to avoid
# circular lookups, we can set local addresses here instead of using local
# dns in pihole (or global dns which would resolve to our WAN ips).
extraHosts = ''
127.0.0.1 git.jhink.org vault.jhink.org home.jhink.org
'';
# The global useDHCP flag is deprecated, therefore explicitly set to false here. Per-interface useDHCP will be mandatory in the future, so this generated config replicates the default behaviour. # The global useDHCP flag is deprecated, therefore explicitly set to false here. Per-interface useDHCP will be mandatory in the future, so this generated config replicates the default behaviour.
useDHCP = false; useDHCP = false;