Update port config
This commit is contained in:
parent
f2e2700acb
commit
aa79162e2c
6 changed files with 33 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{ config, ... }: {
|
||||
networking = {
|
||||
domain = config.constants.domain;
|
||||
networking = let const = config.constants; in {
|
||||
domain = const.domain;
|
||||
hostId = "30f8f777";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
ips = [ "10.32.54.2/32" ];
|
||||
peers = [{
|
||||
allowedIPs = [ "10.32.54.0/24" ];
|
||||
endpoint = "${config.constants.domain}:45556";
|
||||
endpoint = "${const.domain}:${toString const.port.wireguard-server}";
|
||||
publicKey = "0j8+alXU/f2UgWN61R6+Wjs9xelGRwpSbe5NyOwWlF4=";
|
||||
}];
|
||||
privateKeyFile = config.sops.secrets."wireguard/${config.networking.hostName}".path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue