Macbook updates for agenix
This commit is contained in:
parent
648bf43f76
commit
195a5e1540
3 changed files with 14 additions and 12 deletions
|
|
@ -1,12 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.wg-private.file = "../../keys/wg-macbook";
|
||||
services.wg-quick.interfaces.wg0 = {
|
||||
# Add a name for your interface here, e.g., wg0
|
||||
enable = true;
|
||||
# Path to your WireGuard config file
|
||||
# e.g., /etc/wireguard/wg0.conf
|
||||
|
||||
age.secrets.wg-private.file = ../../keys/wg-macbook;
|
||||
networking.wg-quick.interfaces.wg-selene = {
|
||||
privateKeyFile = config.age.secrets.wg-private.path;
|
||||
|
||||
# The internal IP address assigned to this client by the server.
|
||||
|
|
@ -23,7 +18,7 @@
|
|||
peers = [
|
||||
{
|
||||
# Public key of the SERVER.
|
||||
publicKey = builtins.readFile ../../../keys/wg-selene.pub;
|
||||
publicKey = builtins.readFile ../../keys/wg-selene.pub;
|
||||
|
||||
# The server's public IP address and listening port.
|
||||
endpoint = "37.27.207.39:51820";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue