Macbook updates for agenix

This commit is contained in:
Maxiem Geldhof 2025-10-18 13:59:43 +02:00
parent 648bf43f76
commit 195a5e1540
3 changed files with 14 additions and 12 deletions

View file

@ -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";