hosts/plover: update domain names for internal services

This commit is contained in:
Gabriel Arazas 2023-02-08 19:05:23 +08:00
parent ac8d875c35
commit f07aa33220
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 7 additions and 10 deletions

View File

@ -65,9 +65,6 @@ rec {
};
};
# The private network for this host.
preferredInternalTLD = "internal";
# Wireguard-related things.
wireguardPort = 51820;
wireguardIPHostPart = "10.210.0";

View File

@ -4,9 +4,9 @@
{ config, lib, pkgs, ... }:
let
inherit (import ../hardware/networks.nix) preferredInternalTLD interfaces;
inherit (import ../hardware/networks.nix) interfaces;
atuinInternalDomain = "atuin.${config.networking.domain}.${preferredInternalTLD}";
atuinInternalDomain = "atuin.${config.networking.fqdn}";
host = interfaces.internal.IPv4.address;
in
{

View File

@ -2,10 +2,10 @@
{ config, lib, pkgs, ... }:
let
inherit (import ../hardware/networks.nix) preferredInternalTLD interfaces;
inherit (import ../hardware/networks.nix) interfaces;
authDomain = "auth.${config.networking.domain}";
authInternalDomain = "auth.${config.networking.domain}.${preferredInternalTLD}";
authInternalDomain = "auth.${config.networking.fqdn}";
# This is also set on our own.
keycloakUser = config.services.keycloak.database.username;

View File

@ -4,7 +4,7 @@
{ config, lib, pkgs, ... }:
let
ldapDomain = "ldap.${config.networking.domain}";
ldapDomain = "ldap.${config.networking.fqdn}";
in
{
services.portunus = {

View File

@ -5,7 +5,7 @@
let
acmeName = "wireguard.${config.networking.domain}";
inherit (builtins) toString;
inherit (import ../hardware/networks.nix) interfaces wireguardPort wireguardPeers preferredInternalTLD;
inherit (import ../hardware/networks.nix) interfaces wireguardPort wireguardPeers;
wireguardIFName = "wireguard0";
@ -13,7 +13,7 @@ let
phonePeerAddresses = with wireguardPeers.phone; [ "${IPv4}/24" "${IPv6}/96" ];
internalDomains = [
"~${config.networking.domain}.${preferredInternalTLD}"
"~${config.networking.fqdn}"
];
in
{