ips readjustments to add workstation to wireguard
This commit is contained in:
@@ -9,7 +9,7 @@ in
|
||||
{
|
||||
options.my.services.wireguard.enable = lib.mkEnableOption "WireGuard VPN configuration";
|
||||
config = lib.mkIf (config.my.services.wireguard.enable && config.my.secureHost) {
|
||||
sops.secrets."vps/server/private".sopsFile = ../../secrets/wireguard.yaml;
|
||||
sops.secrets."vps/private".sopsFile = ../../secrets/wireguard.yaml;
|
||||
networking = {
|
||||
firewall.allowedUDPPorts = [ port ];
|
||||
wireguard.interfaces.wg0 = {
|
||||
@@ -21,12 +21,16 @@ in
|
||||
listenPort = port;
|
||||
postSetup = "";
|
||||
postShutdown = "";
|
||||
privateKeyFile = config.sops.secrets."vps/server/private".path;
|
||||
privateKeyFile = config.sops.secrets."vps/private".path;
|
||||
peers = [
|
||||
{
|
||||
publicKey = "OUiqluRaS4hmGvLJ3csQrnIM3Zzet50gsqtTABaUkH4=";
|
||||
allowedIPs = [ "${config.my.ips.wg-server}/32" ];
|
||||
}
|
||||
{
|
||||
publicKey = "AR17CdtUPs595sbb9WZvAYoEpdKezOKKbDmgUa9+IxQ=";
|
||||
allowedIPs = [ "${config.my.ips.wg-workstation}/32" ];
|
||||
}
|
||||
{
|
||||
publicKey = "BwN4uCkMd6eAS5Ugld0oXnA16IhgEEQF8mOJ3+vHliA=";
|
||||
allowedIPs = [ "${config.my.ips.wg-galaxy}/32" ];
|
||||
|
||||
Reference in New Issue
Block a user