Add darwin hosts to wireguard

This commit is contained in:
Yan Lin 2025-09-10 23:02:44 +02:00
parent ae14f058f0
commit 7725fb6846
6 changed files with 68 additions and 1 deletions

View file

@ -9,4 +9,20 @@
imports = [
../system-default.nix
];
# WireGuard LaunchAgent for auto-start
launchd.user.agents.wireguard = {
serviceConfig = {
ProgramArguments = [
"/opt/homebrew/bin/wg-quick"
"up"
"/Users/yanlin/.config/nix/config/wireguard/imac.conf"
];
RunAtLoad = true;
KeepAlive = false;
Label = "com.wireguard.imac";
StandardErrorPath = "/tmp/wireguard.err";
StandardOutPath = "/tmp/wireguard.out";
};
};
}