Auto-commit: 2026-01-05 20:47:11
This commit is contained in:
1
hosts/lillypc/.gitignore
vendored
1
hosts/lillypc/.gitignore
vendored
@@ -1,2 +1 @@
|
||||
wireguard.nix
|
||||
secrets.nix
|
||||
27
hosts/lillypc/wireguard.nix
Normal file
27
hosts/lillypc/wireguard.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
let
|
||||
vars = import ./secrets.nix;
|
||||
in
|
||||
{
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wgbackup = {
|
||||
ips = [
|
||||
"10.246.2.3/24"
|
||||
];
|
||||
peers = [
|
||||
{
|
||||
allowedIPs = [
|
||||
"10.246.2.2/32"
|
||||
];
|
||||
endpoint = "unraid.mousesama.net:51820";
|
||||
publicKey = vars.peerPublicKey;
|
||||
presharedKey = vars.presharedKey;
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
privateKey = vars.privateKey;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user