forked from pub-solar/infra
networking: set networking.domain in core module
This commit is contained in:
parent
bae41b07a8
commit
6ea916603c
|
@ -11,7 +11,6 @@
|
||||||
127.0.0.2 mail.pub.solar mail
|
127.0.0.2 mail.pub.solar mail
|
||||||
::1 mail.pub.solar mail
|
::1 mail.pub.solar mail
|
||||||
'';
|
'';
|
||||||
networking.domain = "pub.solar";
|
|
||||||
networking.hostId = "00000002";
|
networking.hostId = "00000002";
|
||||||
|
|
||||||
networking.enableIPv6 = true;
|
networking.enableIPv6 = true;
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
networking.hostName = "nachtigall";
|
networking.hostName = "nachtigall";
|
||||||
networking.domain = "pub.solar";
|
|
||||||
networking.hostId = "00000001";
|
networking.hostId = "00000001";
|
||||||
|
|
||||||
# Network (Hetzner uses static IP assignments, and we don't use DHCP here)
|
# Network (Hetzner uses static IP assignments, and we don't use DHCP here)
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "tankstelle";
|
hostName = "tankstelle";
|
||||||
domain = "pub.solar";
|
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
defaultGateway = {
|
defaultGateway = {
|
||||||
address = "80.244.242.1";
|
address = "80.244.242.1";
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
# Don't expose SSH via public interfaces
|
# Don't expose SSH via public interfaces
|
||||||
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ];
|
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ];
|
||||||
|
|
||||||
|
networking.domain = config.pub-solar-os.networking.domain;
|
||||||
|
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"10.7.6.1" = [ "nachtigall.wg.${config.pub-solar-os.networking.domain}" ];
|
"10.7.6.1" = [ "nachtigall.wg.${config.pub-solar-os.networking.domain}" ];
|
||||||
"10.7.6.2" = [ "flora-6.wg.${config.pub-solar-os.networking.domain}" ];
|
"10.7.6.2" = [ "flora-6.wg.${config.pub-solar-os.networking.domain}" ];
|
||||||
|
|
Loading…
Reference in a new issue